simvx.core.physics¶
SimVX Physics: seam-backed rigid bodies, characters, areas, joints, queries.
The public physics surface is the seam stack: one PhysicsBody2D/3D node with
a runtime-mutable :class:BodyMode (STATIC | KINEMATIC | DYNAMIC), swept
CharacterBody2D/3D controllers, Area2D/3D + GravityArea2D/3D triggers,
CollisionShape2D/3D carriers fed by :class:Shape / :class:Shape2D
resources, joints, and the self.physics / self.physics_2d spatial-query
wrappers. Bodies resolve their world through a :class:PhysicsRoot /
- class:
PhysicsRoot2Dancestor (or an implicit default world).
Usage: from simvx.core import PhysicsBody3D, BodyMode, CollisionShape3D, SphereShape3D
class Ball(PhysicsBody3D):
mode = Property(BodyMode.DYNAMIC)
def on_ready(self):
self.add_child(CollisionShape3D(shape=SphereShape3D(0.5)))
Subpackages¶
Submodules¶
simvx.core.physics.nodes2dsimvx.core.physics.querysimvx.core.physics.capabilitysimvx.core.physics.backendssimvx.core.physics.shapes2dsimvx.core.physics.pymunk_backendsimvx.core.physics.shapessimvx.core.physics.materialsimvx.core.physics.nodessimvx.core.physics.world2dsimvx.core.physics.rootsimvx.core.physics.query2dsimvx.core.physics.world
Package Contents¶
Data¶
API¶
- simvx.core.physics.__all__¶
[‘BodyMode’, ‘CombineMode’, ‘PhysicsMaterial’, ‘Contact’, ‘Contact2D’, ‘Shape’, ‘SphereShape3D’, ‘Bo…