BaseItem.physics property
Methods
add_to_collision_filter | (self, item: BaseItem) -> None |
Adds collision filter to target |
|
apply_force | (self, force: Vector3) -> None |
Applies constant directional |
|
apply_impulse | (self, origin: Vector3, impulse: Vector3) -> None |
Pushes this item with the defined |
|
apply_impulse_local | (self, local_origin: Vector3, impulse: Vector3) -> None |
Pushes this item with the defined |
|
on_collision_enter | (self, handler: Callable[[t: BaseItem], None]) -> None |
Handles the start of a physics collision between this item and another item. |
|
on_collision_exit | (self, handler: Callable[[t: BaseItem], None]) -> None |
Handles the end of a physics collision between this item and another item. |
|
remove_from_collision_filter | (self, item: BaseItem) -> None |
Removes collision filter from the target |
|
restrict_movement_axis | (self, x: bool = ..., y: bool = ..., z: bool = ...) -> None |
Restricts this item's movement on the defined |
|
restrict_rotation_axis | (self, x: bool = ..., y: bool = ..., z: bool = ...) -> None |
Restricts this item's rotation to the defined rotation |
|
shift_position | (self, shift: Vector3) -> None |
Moves this item by an offset from its current position. |
|
shift_position_local | (self, offset: Vector3) -> None |
Moves this item by an |
Properties
angular_velocity | Vector3 |
Returns world space |
|
angular_velocity_local | Vector3 |
Returns local space |
|
enabled | bool |
Toggles this item to be simulated with physics. |
|
force | Vector3 |
Defines directional |
|
friction | float |
Defines the friction of this item during movement |
|
group | object | ||
mass | float |
Defines the mass of this item. Items with higher mass more easily push away items with lower mass. |
|
position | Vector3 |
Returns the world space |
|
restitution | float |
Defines this item's restitution (bounciness). |
|
softness | float |
Defines the velocity threshold at which this item is allowed to be repulsed by collisions. |
|
static | bool |
Defines |
|
velocity | Vector3 |
Returns the world space |
|
velocity_local | Vector3 |
Returns the local space |