arena-py API v1.3.0
arena .attributes .physx_material
PhysxMaterial attribute class to manage its properties in the ARENA: Controls physics properties for individual shapes or rigid bodies. Can be set on an entity with physx-body or on shapes contained within it. Requires scene-options: physics
.
Usage: physx_material=PhysxMaterial(...)
Parameters
- list[float] collidesWithLayers: Array containing all layers that this shape should collide with. Defaults to '[1, 2, 3, 4]' (optional)
- float collisionGroup: If greater than 0, this shape will not collide with any other shape with the same collisionGroup value. Defaults to '0' (optional)
- list[float] collisionLayers: Which collision layers this shape is present on. Defaults to '[1]' (optional)
- str contactOffset: If >= 0, sets the PhysX contact offset, indicating how far away from the shape simulation contact events should begin. (optional)
- float density: Density for the shape. If specified for all shapes in a rigid body, mass properties will be automatically calculated based on densities. (optional)
- float dynamicFriction: Dynamic friction applied when objects are moving relative to each other. Defaults to '0.2' (optional)
- str restOffset: If >= 0, sets the PhysX rest offset. (optional)
- float restitution: Restitution, or 'bounciness' of the material. Defaults to '0.2' (optional)
- float staticFriction: Static friction applied when objects are not moving relative to each other. Defaults to '0.2' (optional)