35 #include "servers/physics_server.h" 50 static void _bind_methods();
54 SHAPE_PLANE = PhysicsServer::SHAPE_PLANE,
55 SHAPE_SPHERE = PhysicsServer::SHAPE_SPHERE,
56 SHAPE_BOX = PhysicsServer::SHAPE_BOX,
57 SHAPE_CYLINDER = PhysicsServer::SHAPE_CYLINDER,
58 SHAPE_CAPSULE = PhysicsServer::SHAPE_CAPSULE,
59 SHAPE_CONVEX_POLYGON = PhysicsServer::SHAPE_CONVEX_POLYGON,
60 SHAPE_CONCAVE_POLYGON = PhysicsServer::SHAPE_CONCAVE_POLYGON,
65 void add_plane_shape(
const Plane& p_plane,
const Transform& p_transform);
66 void add_sphere_shape(
float p_radius,
const Transform& p_transform);
67 void add_box_shape(
const Vector3& p_half_extents,
const Transform& p_transform);
68 void add_cylinder_shape(
float p_radius,
float p_height,
const Transform& p_transform);
69 void add_capsule_shape(
float p_radius,
float p_height,
const Transform& p_transform);
71 int get_shape_count()
const;
72 ShapeType get_shape_type(
int p_shape)
const;
73 Transform get_shape_transform(
int p_shape)
const;
74 Variant get_shape(
int p_shape)
const;
76 virtual RID get_rid();
83 VARIANT_ENUM_CAST( Volume::ShapeType );
Definition: string_db.h:48
Definition: resource.h:89