Skip to content

luxe API (2025.1.2)


luxe: system/physics/body3D.modifier module


Body3D

import "luxe: system/physics/body3D.modifier" for Body3D

no docs found

  • unlisten(entity: Entity, handle: Handle)
  • listen(entity: Entity, fn: Fn)

Body3D.unlisten(entity: Entity, handle: Handle) returns Bool

no docs found

Body3D.listen(entity: Entity, fn: Fn) returns unknown

no docs found

Data

import "luxe: system/physics/body3D.modifier" for Data

no docs found

  • var motion_type : MotionType = MotionType.is_static
  • var motion_quality : MotionQuality = MotionQuality.discrete
  • var is_sensor : Bool = false
  • var allow_sleeping : Bool = true
  • var friction : Num = 0.2
  • var restitution : Num = 0.0
  • var linear_damping : Num = 0.05
  • var angular_damping : Num = 0.05
  • var max_linear_velocity : Num = 500.0
  • var max_angular_velocity : Num = 2700
  • var gravity_factor : Num = 1
  • var mass : Num = 1
  • var lock_movement : Float3 = [0, 0, 0]
  • var lock_rotation : Float3 = [0, 0, 0]
  • var use_manifold_reduction : Bool = true
  • var allow_dynamic_or_kinematic : Bool = false
  • var collide_kinematic_vs_non_dynamic : Bool = false
  • var apply_gyroscopic_force : Bool = false
  • var enhanced_internal_edge_removal : Bool = false
  • var velocity_steps_override : Num = 0
  • var position_steps_override : Num = 0

MotionQuality

import "luxe: system/physics/body3D.modifier" for MotionQuality

no docs found


MotionQuality.discrete returns unknown

no docs found

MotionQuality.linear_cast returns unknown

no docs found

MotionType

import "luxe: system/physics/body3D.modifier" for MotionType

no docs found


MotionType.is_static returns unknown

no docs found

MotionType.is_dynamic returns unknown

no docs found

MotionType.is_kinematic returns unknown

no docs found

System

import "luxe: system/physics/body3D.modifier" for System

no docs found

  • new(world: World)
  • init(world: World)

System.new(world: World) returns System

no docs found

System.init(world: World) returns unknown

no docs found