pub struct PhysicsCounts {
pub static_colliders: u32,
pub dynamic_colliders: u32,
pub trigger_volumes: u32,
pub joints: u32,
pub world_anchored_joints: u32,
pub player_capsules: u32,
pub rig_capsules: u32,
}Expand description
Tallies of a world’s authored physics content.
Both cook (over the authored asset list) and the runtime (over the loaded component columns) produce one of these, which is what lets the two sides be compared for agreement.
Fields§
§static_colliders: u32Collider-bearing entities with no dynamics: walls, scenery, floors.
dynamic_colliders: u32Collider-bearing entities that are freely simulated.
trigger_volumes: u32Sensor regions that report crossings but never collide.
joints: u32Joints whose bodies both resolve to collider-bearing entities.
world_anchored_joints: u32The subset of joints anchored to the world rather than a second body.
player_capsules: u32The player capsule: 1 when the world declares one, else 0.
rig_capsules: u32Kinematic capsules driven by root motion, one per character rig.
Trait Implementations§
Source§impl Clone for PhysicsCounts
impl Clone for PhysicsCounts
Source§fn clone(&self) -> PhysicsCounts
fn clone(&self) -> PhysicsCounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhysicsCounts
Source§impl Debug for PhysicsCounts
impl Debug for PhysicsCounts
Source§impl Default for PhysicsCounts
impl Default for PhysicsCounts
Source§fn default() -> PhysicsCounts
fn default() -> PhysicsCounts
Returns the “default value” for a type. Read more
impl Eq for PhysicsCounts
Source§impl PartialEq for PhysicsCounts
impl PartialEq for PhysicsCounts
impl StructuralPartialEq for PhysicsCounts
Auto Trait Implementations§
impl Freeze for PhysicsCounts
impl RefUnwindSafe for PhysicsCounts
impl Send for PhysicsCounts
impl Sync for PhysicsCounts
impl Unpin for PhysicsCounts
impl UnsafeUnpin for PhysicsCounts
impl UnwindSafe for PhysicsCounts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more