Skip to Content
defold-typescript
Get startedGuidesAPILibraries
Defold

bullet3d.collision_object58 new

Functions shared by rigid bodies and trigger ghost objects. Defold keeps ownership of each object's user pointer, motion state, collision shape, and world membership. Logical child shapes are inspected and mutated through bullet3d.shape; ownership is not transferred to Lua.

Positions, distances, and CCD thresholds use Defold units. Rotations, coefficients, flags, activation state, and time values use Bullet values. Floating-point and vector inputs must be finite. CCD radii and motion thresholds must also be non-negative.

Functions

bullet3d.collision_object.activate(object: Opaque<"btCollisionObject" | "btRigidBody">, force?: boolean): voidN

  • Since Defold 1.13.2

Activate a collision object

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • force?: boolean — force activation of a static or kinematic object; defaults to false

bullet3d.collision_object.force_activation_state(object: Opaque<"btCollisionObject" | "btRigidBody">, state: bullet3d.collision_object.ActivationState): voidN

  • Since Defold 1.13.2

Force the activation state

Parameters

bullet3d.collision_object.get_activation_state(object: Opaque<"btCollisionObject" | "btRigidBody">): bullet3d.collision_object.ActivationStateN

  • Since Defold 1.13.2

Get the activation state

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

bullet3d.collision_object.get_ccd_motion_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get the CCD motion threshold

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • threshold: number — threshold in Defold units

bullet3d.collision_object.get_ccd_swept_sphere_radius(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get the CCD swept sphere radius

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • radius: number — radius in Defold units

bullet3d.collision_object.get_collision_filter_group(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Returns the raw unsigned 16-bit filter group that Defold assigned to the object's Bullet broadphase proxy. Use this value as category_bits in a bullet3d.world query filter. Bullet applies reciprocal filtering: the query's mask_bits must include this group, and the query's category_bits must be included in the object's filter mask.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object in a Bullet world

Returns

  • group: number — raw unsigned 16-bit collision filter group

bullet3d.collision_object.get_collision_filter_mask(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Returns the raw unsigned 16-bit filter mask that Defold assigned to the object's Bullet broadphase proxy. Use this value as mask_bits in a bullet3d.world query filter. Bullet applies reciprocal filtering: the query's category_bits must be included in this mask, and the query's mask_bits must include the object's filter group.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object in a Bullet world

Returns

  • mask: number — raw unsigned 16-bit collision filter mask

bullet3d.collision_object.get_collision_flags(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get collision flags

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • flags: number — bit field of CF_* constants

bullet3d.collision_object.get_contact_processing_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get the contact processing threshold

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • threshold: number — threshold in Defold units

bullet3d.collision_object.get_deactivation_time(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get deactivation time

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • seconds: number — deactivation time

bullet3d.collision_object.get_friction(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get friction

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • friction: number — friction coefficient

bullet3d.collision_object.get_internal_type(object: Opaque<"btCollisionObject" | "btRigidBody">): bullet3d.collision_object.InternalTypeN

  • Since Defold 1.13.2

Get the Bullet collision object type

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

bullet3d.collision_object.get_position(object: Opaque<"btCollisionObject" | "btRigidBody">): Vector3N

  • Since Defold 1.13.2

Get the world position

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • position: Vector3 — world position in Defold units

bullet3d.collision_object.get_restitution(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get restitution

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • restitution: number — restitution coefficient

bullet3d.collision_object.get_rotation(object: Opaque<"btCollisionObject" | "btRigidBody">): QuaternionN

  • Since Defold 1.13.2

Get the world rotation

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • rotation: Quaternion — world rotation

bullet3d.collision_object.get_shape(object: Opaque<"btCollisionObject" | "btRigidBody">, shape_index: number): bullet3d.shape.BtCollisionShapeN

  • Since Defold 1.13.2

Get one attached shape by one-based index.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • shape_index: number — one-based shape index. ⚠️ 1-based; passed to Defold unchanged.

Returns

bullet3d.collision_object.get_shape_count(object: Opaque<"btCollisionObject" | "btRigidBody">): numberN

  • Since Defold 1.13.2

Get the number of shapes attached to a collision object.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • count: number — shape count

bullet3d.collision_object.get_shapes(object: Opaque<"btCollisionObject" | "btRigidBody">): bullet3d.shape.BtCollisionShape[]N

  • Since Defold 1.13.2

Get all attached shapes.

// Enumerate the logical shapes attached to a collision object:
export default defineScript({
  init() {
    const object = bullet3d.get_collision_object("#collisionobject");
    if (object === undefined) return;
    for (const shape of bullet3d.collision_object.get_shapes(object)) {
      const index = bullet3d.shape.get_index(shape);
      const data = bullet3d.shape.get_shape(shape);
      print("shape", index, "type", data.type);
    }
  },
});
function init(self)
    local object = bullet3d.get_collision_object("#collisionobject")
    for _, shape in ipairs(bullet3d.collision_object.get_shapes(object)) do
        local index = bullet3d.shape.get_index(shape)
        local data = bullet3d.shape.get_shape(shape)
        print("shape", index, "type", data.type)
    end
end

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

bullet3d.collision_object.get_world_transform(object: Opaque<"btCollisionObject" | "btRigidBody">): LuaMultiReturn<[Vector3, Quaternion]>N

  • Since Defold 1.13.2

Get the world transform

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • position: Vector3 — world position in Defold units
  • rotation: Quaternion — world rotation

bullet3d.collision_object.has_collision_flag(object: Opaque<"btCollisionObject" | "btRigidBody">, flag: number): booleanN

  • Since Defold 1.13.2

Test a collision flag

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • flag: number — collision flag or mask

Returns

  • set: boolean — true when all requested flag bits are set

bullet3d.collision_object.has_contact_response(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

Test whether the object responds to contacts

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • result: boolean — contact response state

bullet3d.collision_object.is_active(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

This exposes Bullet's native btCollisionObject::isActive result. It is false for ISLAND_SLEEPING and DISABLE_SIMULATION, and true for the other activation states available to Defold collision objects. It is unrelated to whether the Defold component is enabled.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • active: boolean — active state

bullet3d.collision_object.is_awake(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

Box2D-style name for the same simulation state returned by bullet3d.collision_object.is_active.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • awake: boolean — false when sleeping or simulation is disabled

bullet3d.collision_object.is_ghost_object(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

Test whether the object is a ghost trigger

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • result: boolean — ghost object state

bullet3d.collision_object.is_kinematic(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

Test whether the object is kinematic

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • kinematic: boolean — kinematic state

bullet3d.collision_object.is_rigid_body(object: Opaque<"btCollisionObject" | "btRigidBody">): object is Opaque<"btRigidBody">N

  • Since Defold 1.13.2

Test whether the object is a rigid body

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • result: boolean — rigid body state

bullet3d.collision_object.is_static(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

Test whether the object is static

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • static: boolean — static state

bullet3d.collision_object.is_static_or_kinematic(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

Test whether the object is static or kinematic

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • result: boolean — static or kinematic state

bullet3d.collision_object.is_valid(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanN

  • Since Defold 1.13.2

Test whether a collision object handle is valid

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object

Returns

  • valid: boolean — true if the native object still exists

bullet3d.collision_object.set_activation_state(object: Opaque<"btCollisionObject" | "btRigidBody">, state: bullet3d.collision_object.ActivationState): voidN

  • Since Defold 1.13.2

Set the activation state

Parameters

bullet3d.collision_object.set_awake(object: Opaque<"btCollisionObject" | "btRigidBody">, awake: boolean): voidN

  • Since Defold 1.13.2

Passing true calls Bullet's activate(). Passing false requests the native ISLAND_SLEEPING state. As in Bullet, static or kinematic objects are not activated without force, and protected DISABLE_DEACTIVATION or DISABLE_SIMULATION states are not replaced by a sleeping request.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • awake: boolean — requested awake state

bullet3d.collision_object.set_ccd_motion_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">, threshold: number): voidN

  • Since Defold 1.13.2

Set the CCD motion threshold

// Enable continuous collision detection for a small, fast-moving body:
export default defineScript({
  init() {
    const body = bullet3d.get_rigid_body("#collisionobject");
    if (body === undefined) return;
    bullet3d.collision_object.set_ccd_swept_sphere_radius(body, 0.25);
    bullet3d.collision_object.set_ccd_motion_threshold(body, 0.5);
  },
});
function init(self)
    local body = bullet3d.get_rigid_body("#collisionobject")
    bullet3d.collision_object.set_ccd_swept_sphere_radius(body, 0.25)
    bullet3d.collision_object.set_ccd_motion_threshold(body, 0.5)
end

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • threshold: number — finite non-negative threshold in Defold units

bullet3d.collision_object.set_ccd_swept_sphere_radius(object: Opaque<"btCollisionObject" | "btRigidBody">, radius: number): voidN

  • Since Defold 1.13.2

Set the CCD swept sphere radius

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • radius: number — finite non-negative radius in Defold units

bullet3d.collision_object.set_contact_processing_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">, threshold: number): voidN

  • Since Defold 1.13.2

Set the contact processing threshold

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • threshold: number — finite threshold in Defold units

bullet3d.collision_object.set_deactivation_time(object: Opaque<"btCollisionObject" | "btRigidBody">, seconds: number): voidN

  • Since Defold 1.13.2

Set deactivation time

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • seconds: number — finite deactivation time

bullet3d.collision_object.set_friction(object: Opaque<"btCollisionObject" | "btRigidBody">, friction: number): voidN

  • Since Defold 1.13.2

Set friction

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • friction: number — finite friction coefficient

bullet3d.collision_object.set_position(object: Opaque<"btCollisionObject" | "btRigidBody">, position: Vector3): voidN

  • Since Defold 1.13.2

The owning game object's position is updated as well.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • position: Vector3 — finite world position in Defold units

bullet3d.collision_object.set_restitution(object: Opaque<"btCollisionObject" | "btRigidBody">, restitution: number): voidN

  • Since Defold 1.13.2

Set restitution

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • restitution: number — finite restitution coefficient

bullet3d.collision_object.set_rotation(object: Opaque<"btCollisionObject" | "btRigidBody">, rotation: Quaternion): voidN

  • Since Defold 1.13.2

The owning game object's rotation is updated as well.

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • rotation: Quaternion — finite, non-zero world rotation; normalized by the binding

bullet3d.collision_object.set_world_transform(object: Opaque<"btCollisionObject" | "btRigidBody">, position: Vector3, rotation: Quaternion): voidN

  • Since Defold 1.13.2

The owning game object's position and rotation are updated as well, so the transform persists when Defold synchronizes game objects into Bullet.

// Move a collision object while preserving its rotation:
export default defineScript({
  init() {
    const object = bullet3d.get_collision_object("#collisionobject");
    if (object === undefined) return;
    const [position, rotation] = bullet3d.collision_object.get_world_transform(object);
    bullet3d.collision_object.set_world_transform(object, position.add(vmath.vector3(0, 5, 0)), rotation);
    bullet3d.collision_object.activate(object, true);
  },
});
function init(self)
    local object = bullet3d.get_collision_object("#collisionobject")
    local position, rotation = bullet3d.collision_object.get_world_transform(object)
    bullet3d.collision_object.set_world_transform(
        object,
        position + vmath.vector3(0, 5, 0),
        rotation)
    bullet3d.collision_object.activate(object, true)
end

Parameters

  • object: Opaque<"btCollisionObject" | "btRigidBody"> — collision object
  • position: Vector3 — finite world position in Defold units
  • rotation: Quaternion — finite, non-zero world rotation; normalized by the binding

Constants

bullet3d.collision_object.ACTIVE_TAG: number & { readonly __brand: "bullet3d.collision_object.ACTIVE_TAG" }N

  • Since Defold 1.13.2

Active simulation state.

bullet3d.collision_object.CF_CHARACTER_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_CHARACTER_OBJECT" }N

  • Since Defold 1.13.2

Character collision object flag.

bullet3d.collision_object.CF_CUSTOM_MATERIAL_CALLBACK: number & { readonly __brand: "bullet3d.collision_object.CF_CUSTOM_MATERIAL_CALLBACK" }N

  • Since Defold 1.13.2

Custom material callback flag.

bullet3d.collision_object.CF_DISABLE_SPU_COLLISION_PROCESSING: number & { readonly __brand: "bullet3d.collision_object.CF_DISABLE_SPU_COLLISION_PROCESSING" }N

  • Since Defold 1.13.2

Disable SPU collision processing flag.

bullet3d.collision_object.CF_DISABLE_VISUALIZE_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_DISABLE_VISUALIZE_OBJECT" }N

  • Since Defold 1.13.2

Disable debug visualization flag.

bullet3d.collision_object.CF_DYNAMIC_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_DYNAMIC_OBJECT" }N

  • Since Defold 1.13.2

Zero-valued default dynamic-object flag. Compare the complete collision-flags value with this constant; do not pass it to has_collision_flag, since zero is not a bit that can be tested.

bullet3d.collision_object.CF_KINEMATIC_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_KINEMATIC_OBJECT" }N

  • Since Defold 1.13.2

Kinematic collision object flag.

bullet3d.collision_object.CF_NO_CONTACT_RESPONSE: number & { readonly __brand: "bullet3d.collision_object.CF_NO_CONTACT_RESPONSE" }N

  • Since Defold 1.13.2

Disable contact response flag.

bullet3d.collision_object.CF_STATIC_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_STATIC_OBJECT" }N

  • Since Defold 1.13.2

Static collision object flag.

bullet3d.collision_object.CO_COLLISION_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CO_COLLISION_OBJECT" }N

  • Since Defold 1.13.2

Generic collision object type.

bullet3d.collision_object.CO_GHOST_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CO_GHOST_OBJECT" }N

  • Since Defold 1.13.2

Ghost collision object type.

bullet3d.collision_object.CO_HF_FLUID: number & { readonly __brand: "bullet3d.collision_object.CO_HF_FLUID" }N

  • Since Defold 1.13.2

Height-field fluid collision object type.

bullet3d.collision_object.CO_RIGID_BODY: number & { readonly __brand: "bullet3d.collision_object.CO_RIGID_BODY" }N

  • Since Defold 1.13.2

Rigid body collision object type.

bullet3d.collision_object.CO_SOFT_BODY: number & { readonly __brand: "bullet3d.collision_object.CO_SOFT_BODY" }N

  • Since Defold 1.13.2

Soft body collision object type.

bullet3d.collision_object.DISABLE_DEACTIVATION: number & { readonly __brand: "bullet3d.collision_object.DISABLE_DEACTIVATION" }N

  • Since Defold 1.13.2

Disable automatic deactivation.

bullet3d.collision_object.DISABLE_SIMULATION: number & { readonly __brand: "bullet3d.collision_object.DISABLE_SIMULATION" }N

  • Since Defold 1.13.2

Disable simulation.

bullet3d.collision_object.ISLAND_SLEEPING: number & { readonly __brand: "bullet3d.collision_object.ISLAND_SLEEPING" }N

  • Since Defold 1.13.2

Sleeping simulation state.

bullet3d.collision_object.WANTS_DEACTIVATION: number & { readonly __brand: "bullet3d.collision_object.WANTS_DEACTIVATION" }N

  • Since Defold 1.13.2

Wants-deactivation simulation state.

Types

type bullet3d.collision_object.ActivationState = typeof bullet3d.collision_object.ACTIVE_TAG | typeof bullet3d.collision_object.ISLAND_SLEEPING | typeof bullet3d.collision_object.WANTS_DEACTIVATION | typeof bullet3d.collision_object.DISABLE_DEACTIVATION | typeof bullet3d.collision_object.DISABLE_SIMULATION

type bullet3d.collision_object.CollisionFlag = typeof bullet3d.collision_object.CF_DYNAMIC_OBJECT | typeof bullet3d.collision_object.CF_STATIC_OBJECT | typeof bullet3d.collision_object.CF_KINEMATIC_OBJECT | typeof bullet3d.collision_object.CF_NO_CONTACT_RESPONSE | typeof bullet3d.collision_object.CF_CUSTOM_MATERIAL_CALLBACK | typeof bullet3d.collision_object.CF_CHARACTER_OBJECT | typeof bullet3d.collision_object.CF_DISABLE_VISUALIZE_OBJECT | typeof bullet3d.collision_object.CF_DISABLE_SPU_COLLISION_PROCESSING

type bullet3d.collision_object.InternalType = typeof bullet3d.collision_object.CO_COLLISION_OBJECT | typeof bullet3d.collision_object.CO_RIGID_BODY | typeof bullet3d.collision_object.CO_GHOST_OBJECT | typeof bullet3d.collision_object.CO_SOFT_BODY | typeof bullet3d.collision_object.CO_HF_FLUID

On this page

Functionsbullet3d.collision_object.activate(object: Opaque<"btCollisionObject" | "btRigidBody">, force?: boolean): voidNbullet3d.collision_object.force_activation_state(object: Opaque<"btCollisionObject" | "btRigidBody">, state: bullet3d.collision_object.ActivationState): voidNbullet3d.collision_object.get_activation_state(object: Opaque<"btCollisionObject" | "btRigidBody">): bullet3d.collision_object.ActivationStateNbullet3d.collision_object.get_ccd_motion_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_ccd_swept_sphere_radius(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_collision_filter_group(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_collision_filter_mask(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_collision_flags(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_contact_processing_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_deactivation_time(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_friction(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_internal_type(object: Opaque<"btCollisionObject" | "btRigidBody">): bullet3d.collision_object.InternalTypeNbullet3d.collision_object.get_position(object: Opaque<"btCollisionObject" | "btRigidBody">): Vector3Nbullet3d.collision_object.get_restitution(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_rotation(object: Opaque<"btCollisionObject" | "btRigidBody">): QuaternionNbullet3d.collision_object.get_shape(object: Opaque<"btCollisionObject" | "btRigidBody">, shape_index: number): bullet3d.shape.BtCollisionShapeNbullet3d.collision_object.get_shape_count(object: Opaque<"btCollisionObject" | "btRigidBody">): numberNbullet3d.collision_object.get_shapes(object: Opaque<"btCollisionObject" | "btRigidBody">): bullet3d.shape.BtCollisionShape[]Nbullet3d.collision_object.get_world_transform(object: Opaque<"btCollisionObject" | "btRigidBody">): LuaMultiReturn<[Vector3, Quaternion]>Nbullet3d.collision_object.has_collision_flag(object: Opaque<"btCollisionObject" | "btRigidBody">, flag: number): booleanNbullet3d.collision_object.has_contact_response(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.is_active(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.is_awake(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.is_ghost_object(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.is_kinematic(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.is_rigid_body(object: Opaque<"btCollisionObject" | "btRigidBody">): object is Opaque<"btRigidBody">Nbullet3d.collision_object.is_static(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.is_static_or_kinematic(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.is_valid(object: Opaque<"btCollisionObject" | "btRigidBody">): booleanNbullet3d.collision_object.set_activation_state(object: Opaque<"btCollisionObject" | "btRigidBody">, state: bullet3d.collision_object.ActivationState): voidNbullet3d.collision_object.set_awake(object: Opaque<"btCollisionObject" | "btRigidBody">, awake: boolean): voidNbullet3d.collision_object.set_ccd_motion_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">, threshold: number): voidNbullet3d.collision_object.set_ccd_swept_sphere_radius(object: Opaque<"btCollisionObject" | "btRigidBody">, radius: number): voidNbullet3d.collision_object.set_contact_processing_threshold(object: Opaque<"btCollisionObject" | "btRigidBody">, threshold: number): voidNbullet3d.collision_object.set_deactivation_time(object: Opaque<"btCollisionObject" | "btRigidBody">, seconds: number): voidNbullet3d.collision_object.set_friction(object: Opaque<"btCollisionObject" | "btRigidBody">, friction: number): voidNbullet3d.collision_object.set_position(object: Opaque<"btCollisionObject" | "btRigidBody">, position: Vector3): voidNbullet3d.collision_object.set_restitution(object: Opaque<"btCollisionObject" | "btRigidBody">, restitution: number): voidNbullet3d.collision_object.set_rotation(object: Opaque<"btCollisionObject" | "btRigidBody">, rotation: Quaternion): voidNbullet3d.collision_object.set_world_transform(object: Opaque<"btCollisionObject" | "btRigidBody">, position: Vector3, rotation: Quaternion): voidNConstantsbullet3d.collision_object.ACTIVE_TAG: number & { readonly __brand: "bullet3d.collision_object.ACTIVE_TAG" }Nbullet3d.collision_object.CF_CHARACTER_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_CHARACTER_OBJECT" }Nbullet3d.collision_object.CF_CUSTOM_MATERIAL_CALLBACK: number & { readonly __brand: "bullet3d.collision_object.CF_CUSTOM_MATERIAL_CALLBACK" }Nbullet3d.collision_object.CF_DISABLE_SPU_COLLISION_PROCESSING: number & { readonly __brand: "bullet3d.collision_object.CF_DISABLE_SPU_COLLISION_PROCESSING" }Nbullet3d.collision_object.CF_DISABLE_VISUALIZE_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_DISABLE_VISUALIZE_OBJECT" }Nbullet3d.collision_object.CF_DYNAMIC_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_DYNAMIC_OBJECT" }Nbullet3d.collision_object.CF_KINEMATIC_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_KINEMATIC_OBJECT" }Nbullet3d.collision_object.CF_NO_CONTACT_RESPONSE: number & { readonly __brand: "bullet3d.collision_object.CF_NO_CONTACT_RESPONSE" }Nbullet3d.collision_object.CF_STATIC_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CF_STATIC_OBJECT" }Nbullet3d.collision_object.CO_COLLISION_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CO_COLLISION_OBJECT" }Nbullet3d.collision_object.CO_GHOST_OBJECT: number & { readonly __brand: "bullet3d.collision_object.CO_GHOST_OBJECT" }Nbullet3d.collision_object.CO_HF_FLUID: number & { readonly __brand: "bullet3d.collision_object.CO_HF_FLUID" }Nbullet3d.collision_object.CO_RIGID_BODY: number & { readonly __brand: "bullet3d.collision_object.CO_RIGID_BODY" }Nbullet3d.collision_object.CO_SOFT_BODY: number & { readonly __brand: "bullet3d.collision_object.CO_SOFT_BODY" }Nbullet3d.collision_object.DISABLE_DEACTIVATION: number & { readonly __brand: "bullet3d.collision_object.DISABLE_DEACTIVATION" }Nbullet3d.collision_object.DISABLE_SIMULATION: number & { readonly __brand: "bullet3d.collision_object.DISABLE_SIMULATION" }Nbullet3d.collision_object.ISLAND_SLEEPING: number & { readonly __brand: "bullet3d.collision_object.ISLAND_SLEEPING" }Nbullet3d.collision_object.WANTS_DEACTIVATION: number & { readonly __brand: "bullet3d.collision_object.WANTS_DEACTIVATION" }NTypestype bullet3d.collision_object.ActivationState = typeof bullet3d.collision_object.ACTIVE_TAG | typeof bullet3d.collision_object.ISLAND_SLEEPING | typeof bullet3d.collision_object.WANTS_DEACTIVATION | typeof bullet3d.collision_object.DISABLE_DEACTIVATION | typeof bullet3d.collision_object.DISABLE_SIMULATIONtype bullet3d.collision_object.CollisionFlag = typeof bullet3d.collision_object.CF_DYNAMIC_OBJECT | typeof bullet3d.collision_object.CF_STATIC_OBJECT | typeof bullet3d.collision_object.CF_KINEMATIC_OBJECT | typeof bullet3d.collision_object.CF_NO_CONTACT_RESPONSE | typeof bullet3d.collision_object.CF_CUSTOM_MATERIAL_CALLBACK | typeof bullet3d.collision_object.CF_CHARACTER_OBJECT | typeof bullet3d.collision_object.CF_DISABLE_VISUALIZE_OBJECT | typeof bullet3d.collision_object.CF_DISABLE_SPU_COLLISION_PROCESSINGtype bullet3d.collision_object.InternalType = typeof bullet3d.collision_object.CO_COLLISION_OBJECT | typeof bullet3d.collision_object.CO_RIGID_BODY | typeof bullet3d.collision_object.CO_GHOST_OBJECT | typeof bullet3d.collision_object.CO_SOFT_BODY | typeof bullet3d.collision_object.CO_HF_FLUID