Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsWorld.WorldCounters

PhysicsWorld counters that give details of the world simulation size.
Read time 1 minuteLast updated 13 days ago

Definition

public struct PhysicsWorld.WorldCounters

Properties

Property

Description

bodyCountThe number of all body types.
broadphaseHeightThe broadphase tree height for both Dynamic and Kinematic bodies.
contactCountThe number of contacts.
islandCountThe number of islands.
jointCountThe number of joints.
memoryUsedThe total byte allocation used by the physics system.
shapeCountThe number of shapes.
stackUsedThe number of bytes assigned to the Stack allocator.
staticBroadphaseHeightThe broadphase tree height for Static bodies.
taskCountThe number of multi-threaded tasks requested solving the simulation.

Static Methods

Method

Description

AddAdd the specified world counters together.
MaximumFind the maximum values the specified world counters.