AnimatableBody3D
继承: StaticBody3D
< PhysicsBody3D
< CollisionObject3D
< Node3D
< Node
< Object
A 3D physics body that can't be moved by external forces. When moved manually, it affects other bodies in its path.
描述
An animatable 3D physics body. It can't be moved by external forces or contacts, but can be moved manually by other means such as code, AnimationMixer
s (with AnimationMixer.callback_mode_process
set to AnimationMixer.ANIMATION_CALLBACK_MODE_PROCESS_PHYSICS
), and RemoteTransform3D
.
When AnimatableBody3D is moved, its linear and angular velocity are estimated and used to affect other physics bodies in its path. This makes it useful for moving platforms, doors, and other moving objects.
属性
属性说明
bool
sync_to_physics = true
If true
, the body's movement will be synchronized to the physics frame. This is useful when animating movement via AnimationPlayer
, for example on moving platforms. Do not use together with PhysicsBody3D.move_and_collide
.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。