Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CollisionObject3D¶
Inherits: Node3D < Node < Object
Inherited By: Area3D, PhysicsBody3D
Abstract base class for 3D physics objects.
Description¶
Abstract base class for 3D physics objects. CollisionObject3D can hold any number of Shape3Ds for collision. Each shape must be assigned to a shape owner. Shape owners are not nodes and do not appear in the editor, but are accessible through code using the shape_owner_*
methods.
Warning: With a non-uniform scale, this node will likely not behave as expected. It is advised to keep its scale the same on all axes and adjust its collision shape(s) instead.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
Methods¶
void |
_input_event ( Camera3D camera, InputEvent event, Vector3 position, Vector3 normal, int shape_idx ) virtual |
void |
_mouse_enter ( ) virtual |
void |
_mouse_exit ( ) virtual |
create_shape_owner ( Object owner ) |
|
get_collision_layer_value ( int layer_number ) const |
|
get_collision_mask_value ( int layer_number ) const |
|
get_rid ( ) const |
|
get_shape_owners ( ) |
|
is_shape_owner_disabled ( int owner_id ) const |
|
void |
remove_shape_owner ( int owner_id ) |
void |
set_collision_layer_value ( int layer_number, bool value ) |
void |
set_collision_mask_value ( int layer_number, bool value ) |
shape_find_owner ( int shape_index ) const |
|
void |
shape_owner_add_shape ( int owner_id, Shape3D shape ) |
void |
shape_owner_clear_shapes ( int owner_id ) |
shape_owner_get_owner ( int owner_id ) const |
|
shape_owner_get_shape ( int owner_id, int shape_id ) const |
|
shape_owner_get_shape_count ( int owner_id ) const |
|
shape_owner_get_shape_index ( int owner_id, int shape_id ) const |
|