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: numberUsed in wind calculations so each bone tree has a different solution.
Root
This item is read only and cannot be modified. Read OnlyBoneTree.Root: BoneRoot bone of the bone tree
RootPart
This item is read only and cannot be modified. Read OnlyBoneTree.RootPart: BasePartRootPartSize
This item is read only and cannot be modified. Read OnlyBoneTree.RootPartSize: Vector3Constant value of the root parts size at the start of the simulation
Bones
BoneTree.Bones: tableSettings
BoneTree.Settings: {}UpdateRate
This item is read only and cannot be modified. Read OnlyBoneTree.UpdateRate: numberThrottled update rate
InView
This item is read only and cannot be modified. Read OnlyBoneTree.InView: booleanBoundingBoxCFrame
This item is read only and cannot be modified. Read OnlyBoneTree.BoundingBoxCFrame: CFrameBoundingBoxSize
This item is read only and cannot be modified. Read OnlyBoneTree.BoundingBoxSize: SizeAccumulatedDelta
This item is read only and cannot be modified. Read OnlyBoneTree.AccumulatedDelta: numberUsed in the runtime
Destroyed
This item is read only and cannot be modified. Read OnlyBoneTree.Destroyed: booleanTrue if the root part has been destroyed
IsSkippingUpdates
This item is read only and cannot be modified. Read OnlyBoneTree.IsSkippingUpdates: booleanTrue if the bone tree is currently skipping updates
InWorkspace
This item is read only and cannot be modified. Read OnlyBoneTree.InWorkspace: booleanBoolean describing if the rootpart is a descendant of workspace
Force
This item is read only and cannot be modified. Read OnlyBoneTree.Force: Vector3ObjectMove
BoneTree.ObjectMove: Vector3Difference between root parts last position and current position
ObjectVelocity
BoneTree.ObjectVelocity: Vector3Velocity at which the root part is traveling at, calculated via object move.
ObjectPreviousPosition
BoneTree.ObjectPreviousPosition: Vector3Root 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) → ()