Skip to content

Documentation / scene / SphereCollider

Interface: SphereCollider

Defined in: libs/scene/src/animation/spring/spring_collider.ts:24

Sphere collider for spring collision detection

Extends

Properties

node?

optional node?: SceneNode

Defined in: libs/scene/src/animation/spring/spring_collider.ts:14

Associated scene node (optional, for dynamic colliders)

Inherited from

SpringCollider.node


enabled

enabled: boolean

Defined in: libs/scene/src/animation/spring/spring_collider.ts:16

Whether this collider is enabled

Inherited from

SpringCollider.enabled


type

type: "sphere"

Defined in: libs/scene/src/animation/spring/spring_collider.ts:25

Type of collider

Overrides

SpringCollider.type


center

center: Vector3

Defined in: libs/scene/src/animation/spring/spring_collider.ts:27

Center position in world space


radius

radius: number

Defined in: libs/scene/src/animation/spring/spring_collider.ts:29

Radius of the sphere


localRadius?

optional localRadius?: number

Defined in: libs/scene/src/animation/spring/spring_collider.ts:31

Authoring-space radius before node scaling (if node is set)


localRadiusScaleRef?

optional localRadiusScaleRef?: number

Defined in: libs/scene/src/animation/spring/spring_collider.ts:33

Baseline world scale captured at creation for backward compatibility


localOffset?

optional localOffset?: Vector3

Defined in: libs/scene/src/animation/spring/spring_collider.ts:35

Local offset from node (if node is set)

Released under the MIT License.