unreal.BodyInstanceCore
¶
-
class
unreal.
BodyInstanceCore
(simulate_physics=False, enable_gravity=True, auto_weld=False, start_awake=True, generate_wake_events=False)¶ Bases:
unreal.StructBase
Body Instance Core
C++ Source:
Module: PhysicsCore
File: BodyInstanceCore.h
Editor Properties: (see get_editor_property/set_editor_property)
auto_weld
(bool): [Read-Write] If true and is attached to a parent, the two bodies will be joined into a single rigid body. Physical settings like collision profile and body settings are determined by the rootenable_gravity
(bool): [Read-Write] If object should have the force of gravity appliedgenerate_wake_events
(bool): [Read-Write] Should ‘wake/sleep’ events fire when this object is woken up or put to sleep by the physics simulation.override_mass
(bool): [Read-Write] If true, mass will not be automatically computed and you must set it directlysimulate_physics
(bool): [Read-Write] If true, this body will use simulation. If false, will be ‘fixed’ (ie kinematic) and move where it is told. For a Skeletal Mesh Component, simulating requires a physics asset setup and assigned on the SkeletalMesh asset. For a Static Mesh Component, simulating requires simple collision to be setup on the StaticMesh asset.start_awake
(bool): [Read-Write] If object should start awake, or if it should initially be sleeping
-
property
auto_weld
¶ [Read-Write] If true and is attached to a parent, the two bodies will be joined into a single rigid body. Physical settings like collision profile and body settings are determined by the root
- Type
(bool)
-
property
generate_wake_events
¶ [Read-Only] Should ‘wake/sleep’ events fire when this object is woken up or put to sleep by the physics simulation.
- Type
(bool)
-
property
simulate_physics
¶ [Read-Write] If true, this body will use simulation. If false, will be ‘fixed’ (ie kinematic) and move where it is told. For a Skeletal Mesh Component, simulating requires a physics asset setup and assigned on the SkeletalMesh asset. For a Static Mesh Component, simulating requires simple collision to be setup on the StaticMesh asset.
- Type
(bool)