HitboxSetBuilderclass

Builds a named set of model hitboxes.

objectHitboxSetBuilder
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.HitboxSetBuilder

Methods4

Showing 4 methods

public Sandbox.ModelHitboxBuilder AddBox(string name, string boneName, BBox bounds)PUBLIC

Adds a box hitbox in bone-local space.

ParameterTypeDescription
namestringThe hitbox name.
boneNamestringThe bone the hitbox follows.
boundsBBoxThe box bounds relative to the bone.
Returns:ModelHitboxBuilderA builder for the new hitbox.

public Sandbox.ModelHitboxBuilder AddCapsule(string name, string boneName, Capsule capsule)PUBLIC

Adds a capsule hitbox in bone-local space.

ParameterTypeDescription
namestringThe hitbox name.
boneNamestringThe bone the hitbox follows.
capsuleCapsuleThe capsule relative to the bone.
Returns:ModelHitboxBuilderA builder for the new hitbox.

public Sandbox.ModelHitboxBuilder AddSphere(string name, string boneName, Sandbox.Sphere sphere)PUBLIC

Adds a sphere hitbox in bone-local space.

ParameterTypeDescription
namestringThe hitbox name.
boneNamestringThe bone the hitbox follows.
sphereSphereThe sphere relative to the bone.
Returns:ModelHitboxBuilderA builder for the new hitbox.

Properties1

Showing 1 properties

public string Sandbox.HitboxSetBuilder.Name { get; set; }PUBLICGETSET

The name of the hitbox set.

Returns:string

On this page