BoneTree
Internal class for all bone trees
Caution:
Changes to the syntax in this class will not count to the major version in semver.
Properties
WindOffset
This item is read only and cannot be modified. Read OnlyBoneTree.WindOffset:
number
Used in wind calculations so each bone tree has a different solution.
Root
This item is read only and cannot be modified. Read OnlyBoneTree.Root:
Bone
Root bone of the bone tree
RootPart
This item is read only and cannot be modified. Read OnlyBoneTree.RootPart:
BasePart
RootPartSize
This item is read only and cannot be modified. Read OnlyBoneTree.RootPartSize:
Vector3
Constant value of the root parts size at the start of the simulation
Bones
BoneTree.Bones:
table
Settings
BoneTree.Settings:
{
}
UpdateRate
This item is read only and cannot be modified. Read OnlyBoneTree.UpdateRate:
number
Throttled update rate
InView
This item is read only and cannot be modified. Read OnlyBoneTree.InView:
boolean
BoundingBoxCFrame
This item is read only and cannot be modified. Read OnlyBoneTree.BoundingBoxCFrame:
CFrame
BoundingBoxSize
This item is read only and cannot be modified. Read OnlyBoneTree.BoundingBoxSize:
Size
AccumulatedDelta
This item is read only and cannot be modified. Read OnlyBoneTree.AccumulatedDelta:
number
Used in the runtime
Destroyed
This item is read only and cannot be modified. Read OnlyBoneTree.Destroyed:
boolean
True if the root part has been destroyed
IsSkippingUpdates
This item is read only and cannot be modified. Read OnlyBoneTree.IsSkippingUpdates:
boolean
True if the bone tree is currently skipping updates
InWorkspace
This item is read only and cannot be modified. Read OnlyBoneTree.InWorkspace:
boolean
Boolean describing if the rootpart is a descendant of workspace
Force
This item is read only and cannot be modified. Read OnlyBoneTree.Force:
Vector3
ObjectMove
BoneTree.ObjectMove:
Vector3
Difference between root parts last position and current position
ObjectVelocity
BoneTree.ObjectVelocity:
Vector3
Velocity at which the root part is traveling at, calculated via object move.
ObjectPreviousPosition
BoneTree.ObjectPreviousPosition:
Vector3
Root parts previous position
Functions
new
UpdateBoundingBox
BoneTree:
UpdateBoundingBox
(
) →
(
)
Called in BoneTree:PreUpdate(), Computes the bounding box of all the bones
UpdateThrottling
BoneTree:
UpdateThrottling
(
) →
(
)
Called in BoneTree:PreUpdate()
PreUpdate
BoneTree:
PreUpdate
(
Delta:
number
--
Δt
) →
(
)
Calculates object move, gravity and throttled update rate. Also calls Bone:PreUpdate()
StepPhysics
BoneTree:
StepPhysics
(
Delta:
number
--
Δt
) →
(
)
Calculates forces and updates wind. Also calls Bone:StepPhysics()
Constrain
BoneTree:
Constrain
(
ColliderObjects:
table
,
Delta:
number
--
Δt
) →
(
)
SkipUpdate
BoneTree:
SkipUpdate
(
) →
(
)
Resets all bones to their rest positions.
SolveTransform
BoneTree:
SolveTransform
(
Delta:
number
--
Δt
) →
(
)
ApplyTransform
BoneTree:
ApplyTransform
(
) →
(
)
Applys all the transforms to bones in serial context.
DrawDebug
This item only works when running on the client. ClientBoneTree:
DrawDebug
(
DRAW_CONTACTS:
boolean
,
DRAW_PHYSICAL_BONE:
boolean
,
DRAW_BONE:
boolean
,
DRAW_AXIS_LIMITS:
boolean
,
DRAW_ROOT_PART:
boolean
,
DRAW_BOUNDING_BOX:
boolean
,
DRAW_ROTATION_LIMITS:
boolean
,
DRAW_ACCELERATION_INFO:
boolean
) →
(
)