Gets the collision matrix。
Gets the wrappered object of the physical world through which you can access the actual underlying object.
Gets the raycastClosest test result.
Gets the raycast test results.
Gets or sets whether to use a collision matrix.
Gets the ID of the system.
Turn on or off the automatic simulation.
Turn on or off the automatic simulation.
Gets the global default physical material.
Gets or sets whether the physical system is enabled, which can be used to pause or continue running the physical system.
Gets or sets whether the physical system is enabled, which can be used to pause or continue running the physical system.
Gets or sets the fixed delta time consumed by each simulation step.
Gets or sets the fixed delta time consumed by each simulation step.
Gets or sets the maximum number of simulated substeps per frame.
Gets or sets the maximum number of simulated substeps per frame.
Gets or sets the default speed threshold for going to sleep.
Gets or sets the default speed threshold for going to sleep.
Gets the predefined physics groups.
Gets the physical system instance.
Emit trigger and collision events.
Init the system, will be invoked by Director when registered, should be implemented if needed.
Are collisions between group1
and group2
?
The lifecycle function is automatically executed after all components update
and lateUpadte
are executed.
the time since last frame.
Collision detect all collider, and record all the detected results, through PhysicsSystem.Instance.RaycastResults access to the results.
世界空间下的一条射线
掩码,默认为 0xffffffff
最大检测距离,默认为 10000000,目前请勿传入 Infinity 或 Number.MAX_VALUE
是否检测触发器
boolean 表示是否有检测到碰撞盒
Collision detect all collider, and record and ray test results with the shortest distance by PhysicsSystem.Instance.RaycastClosestResult access to the results.
世界空间下的一条射线
掩码,默认为 0xffffffff
最大检测距离,默认为 10000000,目前请勿传入 Infinity 或 Number.MAX_VALUE
是否检测触发器
boolean 表示是否有检测到碰撞盒
Reset the accumulator of time to given value.
Reset the mask corresponding to all groups of the collision matrix to the given value, the default given value is' 0xffffffff '.
Sets whether collisions occur between group1
and group2
.
is collision occurs?
Perform simulation steps for the physics world.
Sync the scene world transform changes to the physics world.
Update function of the system, it will be invoked between all components update phase and late update phase.
Delta time after the last frame
Updates the mask corresponding to the collision matrix for the lowLevel rigid-body instance. Automatic execution during automatic simulation.
Sorting between different systems.
System a
System b
Generated using TypeDoc
Physics system.