Component:DynamicBoneSphereCollider: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add some info on this component
Line 3: Line 3:
|Name=Dynamic Bone Sphere Collider
|Name=Dynamic Bone Sphere Collider
}}
}}
{{stub}}
The dynamic bone sphere collider is a component that allows for making a static sphere collider by adding it to the list of <code>StaticColliders</code> on a [[Component:DynamicBoneChain|DynamicBoneChain]] or make it dynamic by making it part of the <code>Colliders</code> list on a [[Component:DynamicBonePlayerColliders|DynamicBonePlayerColliders Component]]


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Radius|Float|
|Radius|Float| The radius of the sphere created by this component in local space of the [[Slot]] it is made on.
}}
}}


Line 13: Line 13:


== Examples ==
== Examples ==
This component can be used with a [[Component:RayCastDriver|RayCastDriver]] to make a huge sphere under the ground that can act as a floor. Then adding this component to the list of static colliders on a [[Component:DynamicBoneChain|DynamicBoneChain]] allows for fake collisions with the floor, so tails, wings, chains, and cloth tassles won't clip through the ground on avatars.


== See Also ==
== See Also ==

Revision as of 15:58, 1 May 2024

Component image 
Dynamic Bone Sphere Collider component as seen in the Scene Inspector

The dynamic bone sphere collider is a component that allows for making a static sphere collider by adding it to the list of StaticColliders on a DynamicBoneChain or make it dynamic by making it part of the Colliders list on a DynamicBonePlayerColliders Component

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Radius Float The radius of the sphere created by this component in local space of the Slot it is made on.

Behavior

Examples

This component can be used with a RayCastDriver to make a huge sphere under the ground that can act as a floor. Then adding this component to the list of static colliders on a DynamicBoneChain allows for fake collisions with the floor, so tails, wings, chains, and cloth tassles won't clip through the ground on avatars.

See Also