CollisionObject¶
Inherits: Spatial < Node < Object
Inherited By: PhysicsBody, Area
Category: Core
Brief Description¶
Member Functions¶
Signals¶
Member Function Description¶
- void _input_event ( Object camera, InputEvent event, Vector3 click_pos, Vector3 click_normal, int shape_idx ) virtual
Creates new holder for the shapes. Argument is a CollisionShape node. It will return owner_id which usually you will want to save for later use.
- bool get_capture_input_on_drag ( ) const
- RID get_rid ( ) const
- Array get_shape_owners ( )
Shape owner is a node which is holding concrete shape resources. This method will return an array which is holding an integer numbers that are representing unique ID of each owner. You can use those ids when you are using others shape_owner methods.
- bool is_ray_pickable ( ) const
- void remove_shape_owner ( int owner_id )
- void set_capture_input_on_drag ( bool enable )
- void set_ray_pickable ( bool ray_pickable )
- void shape_owner_clear_shapes ( int owner_id )
Will remove all the shapes associated with given owner.
Will return a Shape. First argument owner_id is an integer that can be obtained from get_shape_owners. Shape_id is a position of the shape inside owner; it’s a value in range from 0 to shape_owner_get_shape_count.
Returns number of shapes to which given owner is associated to.
Will return Transform of an owner node.
Removes related shape from the owner.