Restore RayShape as a regular shape type
Partial revert from previously removing ray shapes completely, added back as a shape type but without the specific character controller code.
This commit is contained in:
parent
c89a5fb8be
commit
45c7af9862
33 changed files with 842 additions and 26 deletions
|
|
@ -222,6 +222,7 @@ public:
|
|||
|
||||
enum ShapeType {
|
||||
SHAPE_PLANE, ///< plane:"plane"
|
||||
SHAPE_RAY, ///< float:"length"
|
||||
SHAPE_SPHERE, ///< float:"radius"
|
||||
SHAPE_BOX, ///< vec3:"extents"
|
||||
SHAPE_CAPSULE, ///< dict( float:"radius", float:"height"):capsule
|
||||
|
|
@ -236,6 +237,7 @@ public:
|
|||
RID shape_create(ShapeType p_shape);
|
||||
|
||||
virtual RID plane_shape_create() = 0;
|
||||
virtual RID ray_shape_create() = 0;
|
||||
virtual RID sphere_shape_create() = 0;
|
||||
virtual RID box_shape_create() = 0;
|
||||
virtual RID capsule_shape_create() = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue