RapidGameFramework
Reusable Godot managers for data-driven small games
Loading...
Searching...
No Matches
physics_world Namespace Reference

Variables

 SpatialState
 
 MotionIntegrator
 
 CollisionPipeline
 
 ConstraintSolver
 
 PhysicsQueries
 
 spatial_state
 
 motion_integrator
 
 collision_pipeline
 
 constraint_solver
 
 queries
 
 Dictionary
 Configure global simulation options.
 
 gravity = options.get("gravity", gravity)
 Return broad-phase candidate pairs without resolving them.
 
 damping = max(0.0, float(options.get("damping", damping)))
 
 body
 Add force to one body.
 
 int
 Add a reusable constraint such as { "type": "distance", "a": "p1", "b": "p2", "distance": 64 }.
 
 pairs
 
 last_contacts = collision_pipeline.narrow_phase(pairs)
 
 resolved = constraint_solver.solve_constraints(resolved, constraints, solver_iterations)
 
 bodies
 
 constraints = state.get("constraints", []).duplicate(true)
 

Variable Documentation

◆ bodies

physics_world.bodies

Definition at line 69 of file physics_world.gd.

◆ body

physics_world.body

Add force to one body.

Apply an immediate impulse to one body.

Definition at line 42 of file physics_world.gd.

◆ collision_pipeline

physics_world.collision_pipeline

Definition at line 19 of file physics_world.gd.

◆ CollisionPipeline

physics_world.CollisionPipeline

Definition at line 13 of file physics_world.gd.

◆ constraint_solver

physics_world.constraint_solver

Definition at line 20 of file physics_world.gd.

◆ constraints

physics_world.constraints = state.get("constraints", []).duplicate(true)

Definition at line 112 of file physics_world.gd.

◆ ConstraintSolver

physics_world.ConstraintSolver

Definition at line 14 of file physics_world.gd.

◆ damping

physics_world.damping = max(0.0, float(options.get("damping", damping)))

Definition at line 32 of file physics_world.gd.

◆ Dictionary

physics_world.Dictionary

Configure global simulation options.

Add a body to the world.

Definition at line 30 of file physics_world.gd.

◆ gravity

physics_world.gravity = options.get("gravity", gravity)

Return broad-phase candidate pairs without resolving them.

Return narrow-phase contacts for the current world state.

Definition at line 31 of file physics_world.gd.

◆ int

physics_world.int

Add a reusable constraint such as { "type": "distance", "a": "p1", "b": "p2", "distance": 64 }.

Advance all physics phases.

Definition at line 62 of file physics_world.gd.

◆ last_contacts

physics_world.last_contacts = collision_pipeline.narrow_phase(pairs)

Definition at line 66 of file physics_world.gd.

◆ motion_integrator

physics_world.motion_integrator

Definition at line 18 of file physics_world.gd.

◆ MotionIntegrator

physics_world.MotionIntegrator

Definition at line 12 of file physics_world.gd.

◆ pairs

physics_world.pairs

Definition at line 65 of file physics_world.gd.

◆ PhysicsQueries

physics_world.PhysicsQueries

Definition at line 15 of file physics_world.gd.

◆ queries

physics_world.queries

Definition at line 21 of file physics_world.gd.

◆ resolved

physics_world.resolved = constraint_solver.solve_constraints(resolved, constraints, solver_iterations)

Definition at line 67 of file physics_world.gd.

◆ spatial_state

physics_world.spatial_state

Definition at line 17 of file physics_world.gd.

◆ SpatialState

physics_world.SpatialState

Definition at line 11 of file physics_world.gd.