Skip to content

luxe API (2025.1.2)


luxe: system/physics/physics3D.modifier module


Data

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

no docs found

  • var gravity : Float3 = [0, -9.8, 0]

Physics3D

import "luxe: system/physics/physics3D.modifier" for Physics3D

no docs found


Physics3D.create_in(world: World) returns unknown

no docs found

Physics3D.cast_ray_closest(world: World, origin: Float3, dir: Float3, distance: Num) returns CastRayResult

no docs found

Physics3D.cast_ray(world: World, origin: Float3, dir: Float3, distance: Num) returns unknown

Cast a ray into the world and return all hits, sorted by closest first

Physics3D.set_debug_draw(world: World, state: Bool) returns None

no docs found

Physics3D.unlisten(world: World, handle: Handle) returns Bool

no docs found

Physics3D.listen(world: World, fn: Fn) returns unknown

no docs found

System

import "luxe: system/physics/physics3D.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