Physics¶
文档版本:1.21.50.25
Defines the physical properties of an actor, including whether it is affected by gravity, whether it collides with objects, or whether it is pushed to the closest space.
架构¶
physics:
{
boolean "has_collision" : opt
boolean "has_gravity" : opt
boolean "push_towards_closest_space" : opt
}
has_collision
:boolean- Whether or not the entity collides with things.
has_gravity
:boolean- Whether or not the entity is affected by gravity.
push_towards_closest_space
:boolean- Whether or not the entity is pushed to the closest space.