/dports/devel/godot2/godot-2.1.6-stable/scene/resources/ |
H A D | shape_2d.cpp | 48 …rix32 &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Matrix32 &… in collide_with_motion() argument 50 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide_with_motion() 52 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion() 55 bool Shape2D::collide(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const Matrix32 &p… in collide() argument 56 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide() 58 …ver::get_singleton()->shape_collide(get_rid(), p_local_xform, Vector2(), p_shape->get_rid(), p_sha… in collide() 63 ERR_FAIL_COND_V(p_shape.is_null(), Variant()); in collide_with_motion_and_get_contacts() 68 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion_and_get_contacts() 79 …lide_and_get_contacts(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const Matrix32 &… in collide_and_get_contacts() argument 81 ERR_FAIL_COND_V(p_shape.is_null(), Variant()); in collide_and_get_contacts() [all …]
|
H A D | shape_2d.h | 50 …rix32 &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Matrix32 &… 51 …bool collide(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const Matrix32 &p_shape_x… 53 …rix32 &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Matrix32 &… 54 …Variant collide_and_get_contacts(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const…
|
/dports/devel/godot2-tools/godot-2.1.6-stable/scene/resources/ |
H A D | shape_2d.cpp | 48 …rix32 &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Matrix32 &… in collide_with_motion() argument 50 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide_with_motion() 52 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion() 55 bool Shape2D::collide(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const Matrix32 &p… in collide() argument 56 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide() 58 …ver::get_singleton()->shape_collide(get_rid(), p_local_xform, Vector2(), p_shape->get_rid(), p_sha… in collide() 63 ERR_FAIL_COND_V(p_shape.is_null(), Variant()); in collide_with_motion_and_get_contacts() 68 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion_and_get_contacts() 79 …lide_and_get_contacts(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const Matrix32 &… in collide_and_get_contacts() argument 81 ERR_FAIL_COND_V(p_shape.is_null(), Variant()); in collide_and_get_contacts() [all …]
|
H A D | shape_2d.h | 50 …rix32 &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Matrix32 &… 51 …bool collide(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const Matrix32 &p_shape_x… 53 …rix32 &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Matrix32 &… 54 …Variant collide_and_get_contacts(const Matrix32 &p_local_xform, const Ref<Shape2D> &p_shape, const…
|
/dports/devel/godot/godot-3.2.3-stable/scene/resources/ |
H A D | shape_2d.cpp | 49 …orm2D &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Transform2… in collide_with_motion() argument 51 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide_with_motion() 53 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion() 56 bool Shape2D::collide(const Transform2D &p_local_xform, const Ref<Shape2D> &p_shape, const Transfor… in collide() argument 57 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide() 59 …ver::get_singleton()->shape_collide(get_rid(), p_local_xform, Vector2(), p_shape->get_rid(), p_sha… in collide() 64 ERR_FAIL_COND_V(p_shape.is_null(), Array()); in collide_with_motion_and_get_contacts() 69 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion_and_get_contacts() 80 …e_and_get_contacts(const Transform2D &p_local_xform, const Ref<Shape2D> &p_shape, const Transform2… in collide_and_get_contacts() argument 82 ERR_FAIL_COND_V(p_shape.is_null(), Array()); in collide_and_get_contacts() [all …]
|
/dports/devel/godot-tools/godot-3.2.3-stable/scene/resources/ |
H A D | shape_2d.cpp | 49 …orm2D &p_local_xform, const Vector2 &p_local_motion, const Ref<Shape2D> &p_shape, const Transform2… in collide_with_motion() argument 51 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide_with_motion() 53 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion() 56 bool Shape2D::collide(const Transform2D &p_local_xform, const Ref<Shape2D> &p_shape, const Transfor… in collide() argument 57 ERR_FAIL_COND_V(p_shape.is_null(), false); in collide() 59 …ver::get_singleton()->shape_collide(get_rid(), p_local_xform, Vector2(), p_shape->get_rid(), p_sha… in collide() 64 ERR_FAIL_COND_V(p_shape.is_null(), Array()); in collide_with_motion_and_get_contacts() 69 …get_singleton()->shape_collide(get_rid(), p_local_xform, p_local_motion, p_shape->get_rid(), p_sha… in collide_with_motion_and_get_contacts() 80 …e_and_get_contacts(const Transform2D &p_local_xform, const Ref<Shape2D> &p_shape, const Transform2… in collide_and_get_contacts() argument 82 ERR_FAIL_COND_V(p_shape.is_null(), Array()); in collide_and_get_contacts() [all …]
|
/dports/devel/godot-tools/godot-3.2.3-stable/scene/3d/ |
H A D | collision_object.cpp | 256 ERR_FAIL_COND(p_shape.is_null()); in shape_owner_add_shape() 261 s.shape = p_shape; in shape_owner_add_shape() 280 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), Ref<Shape>()); in shape_owner_get_shape() 282 return shapes[p_owner].shapes[p_shape].shape; in shape_owner_get_shape() 284 int CollisionObject::shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const { in shape_owner_get_shape_index() 287 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), -1); in shape_owner_get_shape_index() 289 return shapes[p_owner].shapes[p_shape].index; in shape_owner_get_shape_index() 292 void CollisionObject::shape_owner_remove_shape(uint32_t p_owner, int p_shape) { in shape_owner_remove_shape() argument 295 ERR_FAIL_INDEX(p_shape, shapes[p_owner].shapes.size()); in shape_owner_remove_shape() 297 int index_to_remove = shapes[p_owner].shapes[p_shape].index; in shape_owner_remove_shape() [all …]
|
H A D | collision_object.h | 78 … const Ref<InputEvent> &p_input_event, const Vector3 &p_pos, const Vector3 &p_normal, int p_shape); 95 void shape_owner_add_shape(uint32_t p_owner, const Ref<Shape> &p_shape); 97 Ref<Shape> shape_owner_get_shape(uint32_t p_owner, int p_shape) const; 98 int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const; 100 void shape_owner_remove_shape(uint32_t p_owner, int p_shape);
|
/dports/devel/godot/godot-3.2.3-stable/scene/3d/ |
H A D | collision_object.cpp | 256 ERR_FAIL_COND(p_shape.is_null()); in shape_owner_add_shape() 261 s.shape = p_shape; in shape_owner_add_shape() 280 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), Ref<Shape>()); in shape_owner_get_shape() 282 return shapes[p_owner].shapes[p_shape].shape; in shape_owner_get_shape() 284 int CollisionObject::shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const { in shape_owner_get_shape_index() 287 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), -1); in shape_owner_get_shape_index() 289 return shapes[p_owner].shapes[p_shape].index; in shape_owner_get_shape_index() 292 void CollisionObject::shape_owner_remove_shape(uint32_t p_owner, int p_shape) { in shape_owner_remove_shape() argument 295 ERR_FAIL_INDEX(p_shape, shapes[p_owner].shapes.size()); in shape_owner_remove_shape() 297 int index_to_remove = shapes[p_owner].shapes[p_shape].index; in shape_owner_remove_shape() [all …]
|
H A D | collision_object.h | 78 … const Ref<InputEvent> &p_input_event, const Vector3 &p_pos, const Vector3 &p_normal, int p_shape); 95 void shape_owner_add_shape(uint32_t p_owner, const Ref<Shape> &p_shape); 97 Ref<Shape> shape_owner_get_shape(uint32_t p_owner, int p_shape) const; 98 int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const; 100 void shape_owner_remove_shape(uint32_t p_owner, int p_shape);
|
/dports/devel/godot-tools/godot-3.2.3-stable/scene/2d/ |
H A D | collision_object_2d.cpp | 244 ERR_FAIL_COND(p_shape.is_null()); in shape_owner_add_shape() 249 s.shape = p_shape; in shape_owner_add_shape() 268 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), Ref<Shape2D>()); in shape_owner_get_shape() 270 return shapes[p_owner].shapes[p_shape].shape; in shape_owner_get_shape() 272 int CollisionObject2D::shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const { in shape_owner_get_shape_index() 275 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), -1); in shape_owner_get_shape_index() 277 return shapes[p_owner].shapes[p_shape].index; in shape_owner_get_shape_index() 280 void CollisionObject2D::shape_owner_remove_shape(uint32_t p_owner, int p_shape) { in shape_owner_remove_shape() argument 283 ERR_FAIL_INDEX(p_shape, shapes[p_owner].shapes.size()); in shape_owner_remove_shape() 285 int index_to_remove = shapes[p_owner].shapes[p_shape].index; in shape_owner_remove_shape() [all …]
|
H A D | collision_object_2d.h | 80 void _input_event(Node *p_viewport, const Ref<InputEvent> &p_input_event, int p_shape); 105 void shape_owner_add_shape(uint32_t p_owner, const Ref<Shape2D> &p_shape); 107 Ref<Shape2D> shape_owner_get_shape(uint32_t p_owner, int p_shape) const; 108 int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const; 110 void shape_owner_remove_shape(uint32_t p_owner, int p_shape);
|
/dports/devel/godot/godot-3.2.3-stable/scene/2d/ |
H A D | collision_object_2d.cpp | 244 ERR_FAIL_COND(p_shape.is_null()); in shape_owner_add_shape() 249 s.shape = p_shape; in shape_owner_add_shape() 268 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), Ref<Shape2D>()); in shape_owner_get_shape() 270 return shapes[p_owner].shapes[p_shape].shape; in shape_owner_get_shape() 272 int CollisionObject2D::shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const { in shape_owner_get_shape_index() 275 ERR_FAIL_INDEX_V(p_shape, shapes[p_owner].shapes.size(), -1); in shape_owner_get_shape_index() 277 return shapes[p_owner].shapes[p_shape].index; in shape_owner_get_shape_index() 280 void CollisionObject2D::shape_owner_remove_shape(uint32_t p_owner, int p_shape) { in shape_owner_remove_shape() argument 283 ERR_FAIL_INDEX(p_shape, shapes[p_owner].shapes.size()); in shape_owner_remove_shape() 285 int index_to_remove = shapes[p_owner].shapes[p_shape].index; in shape_owner_remove_shape() [all …]
|
H A D | collision_object_2d.h | 80 void _input_event(Node *p_viewport, const Ref<InputEvent> &p_input_event, int p_shape); 105 void shape_owner_add_shape(uint32_t p_owner, const Ref<Shape2D> &p_shape); 107 Ref<Shape2D> shape_owner_get_shape(uint32_t p_owner, int p_shape) const; 108 int shape_owner_get_shape_index(uint32_t p_owner, int p_shape) const; 110 void shape_owner_remove_shape(uint32_t p_owner, int p_shape);
|
/dports/devel/godot2/godot-2.1.6-stable/scene/2d/ |
H A D | collision_object_2d.cpp | 188 emit_signal(SceneStringNames::get_singleton()->input_event, p_viewport, p_input_event, p_shape); in _input_event() 243 void CollisionObject2D::add_shape(const Ref<Shape2D> &p_shape, const Matrix32 &p_transform) { in add_shape() argument 245 ERR_FAIL_COND(p_shape.is_null()); in add_shape() 248 sdata.shape = p_shape; in add_shape() 253 Physics2DServer::get_singleton()->area_add_shape(get_rid(), p_shape->get_rid(), p_transform); in add_shape() 255 Physics2DServer::get_singleton()->body_add_shape(get_rid(), p_shape->get_rid(), p_transform); in add_shape() 263 void CollisionObject2D::set_shape(int p_shape_idx, const Ref<Shape2D> &p_shape) { in set_shape() argument 266 ERR_FAIL_COND(p_shape.is_null()); in set_shape() 268 shapes[p_shape_idx].shape = p_shape; in set_shape() 270 Physics2DServer::get_singleton()->area_set_shape(get_rid(), p_shape_idx, p_shape->get_rid()); in set_shape() [all …]
|
/dports/devel/godot2-tools/godot-2.1.6-stable/scene/2d/ |
H A D | collision_object_2d.cpp | 188 emit_signal(SceneStringNames::get_singleton()->input_event, p_viewport, p_input_event, p_shape); in _input_event() 243 void CollisionObject2D::add_shape(const Ref<Shape2D> &p_shape, const Matrix32 &p_transform) { in add_shape() argument 245 ERR_FAIL_COND(p_shape.is_null()); in add_shape() 248 sdata.shape = p_shape; in add_shape() 253 Physics2DServer::get_singleton()->area_add_shape(get_rid(), p_shape->get_rid(), p_transform); in add_shape() 255 Physics2DServer::get_singleton()->body_add_shape(get_rid(), p_shape->get_rid(), p_transform); in add_shape() 263 void CollisionObject2D::set_shape(int p_shape_idx, const Ref<Shape2D> &p_shape) { in set_shape() argument 266 ERR_FAIL_COND(p_shape.is_null()); in set_shape() 268 shapes[p_shape_idx].shape = p_shape; in set_shape() 270 Physics2DServer::get_singleton()->area_set_shape(get_rid(), p_shape_idx, p_shape->get_rid()); in set_shape() [all …]
|
/dports/devel/godot2/godot-2.1.6-stable/servers/physics/ |
H A D | collision_object_sw.cpp | 33 void CollisionObjectSW::add_shape(ShapeSW *p_shape, const Transform &p_transform) { in add_shape() argument 36 s.shape = p_shape; in add_shape() 41 p_shape->add_owner(this); in add_shape() 46 void CollisionObjectSW::set_shape(int p_index, ShapeSW *p_shape) { in set_shape() argument 50 shapes[p_index].shape = p_shape; in set_shape() 52 p_shape->add_owner(this); in set_shape() 66 void CollisionObjectSW::remove_shape(ShapeSW *p_shape) { in remove_shape() argument 71 if (shapes[i].shape == p_shape) { in remove_shape()
|
/dports/devel/godot2-tools/godot-2.1.6-stable/servers/physics/ |
H A D | collision_object_sw.cpp | 33 void CollisionObjectSW::add_shape(ShapeSW *p_shape, const Transform &p_transform) { in add_shape() argument 36 s.shape = p_shape; in add_shape() 41 p_shape->add_owner(this); in add_shape() 46 void CollisionObjectSW::set_shape(int p_index, ShapeSW *p_shape) { in set_shape() argument 50 shapes[p_index].shape = p_shape; in set_shape() 52 p_shape->add_owner(this); in set_shape() 66 void CollisionObjectSW::remove_shape(ShapeSW *p_shape) { in remove_shape() argument 71 if (shapes[i].shape == p_shape) { in remove_shape()
|
/dports/devel/godot-tools/godot-3.2.3-stable/modules/bullet/ |
H A D | collision_object_bullet.h | 83 ShapeWrapper(ShapeBullet *p_shape, const btTransform &p_transform, bool p_active) : in ShapeWrapper() 84 shape(p_shape), in ShapeWrapper() 90 ShapeWrapper(ShapeBullet *p_shape, const Transform &p_transform, bool p_active) : in ShapeWrapper() 91 shape(p_shape), in ShapeWrapper() 232 …void add_shape(ShapeBullet *p_shape, const Transform &p_transform = Transform(), bool p_disabled =… 233 void set_shape(int p_index, ShapeBullet *p_shape); 239 int find_shape(ShapeBullet *p_shape) const; 241 virtual void remove_shape_full(ShapeBullet *p_shape);
|
/dports/devel/godot2-tools/godot-2.1.6-stable/servers/physics_2d/ |
H A D | collision_object_2d_sw.cpp | 33 void CollisionObject2DSW::add_shape(Shape2DSW *p_shape, const Matrix32 &p_transform) { in add_shape() argument 36 s.shape = p_shape; in add_shape() 42 p_shape->add_owner(this); in add_shape() 47 void CollisionObject2DSW::set_shape(int p_index, Shape2DSW *p_shape) { in set_shape() argument 51 shapes[p_index].shape = p_shape; in set_shape() 53 p_shape->add_owner(this); in set_shape() 74 void CollisionObject2DSW::remove_shape(Shape2DSW *p_shape) { in remove_shape() argument 79 if (shapes[i].shape == p_shape) { in remove_shape()
|
/dports/devel/godot2/godot-2.1.6-stable/servers/physics_2d/ |
H A D | collision_object_2d_sw.cpp | 33 void CollisionObject2DSW::add_shape(Shape2DSW *p_shape, const Matrix32 &p_transform) { in add_shape() argument 36 s.shape = p_shape; in add_shape() 42 p_shape->add_owner(this); in add_shape() 47 void CollisionObject2DSW::set_shape(int p_index, Shape2DSW *p_shape) { in set_shape() argument 51 shapes[p_index].shape = p_shape; in set_shape() 53 p_shape->add_owner(this); in set_shape() 74 void CollisionObject2DSW::remove_shape(Shape2DSW *p_shape) { in remove_shape() argument 79 if (shapes[i].shape == p_shape) { in remove_shape()
|
/dports/devel/godot/godot-3.2.3-stable/modules/bullet/ |
H A D | collision_object_bullet.h | 83 ShapeWrapper(ShapeBullet *p_shape, const btTransform &p_transform, bool p_active) : in ShapeWrapper() 84 shape(p_shape), in ShapeWrapper() 90 ShapeWrapper(ShapeBullet *p_shape, const Transform &p_transform, bool p_active) : in ShapeWrapper() 91 shape(p_shape), in ShapeWrapper() 232 …void add_shape(ShapeBullet *p_shape, const Transform &p_transform = Transform(), bool p_disabled =… 233 void set_shape(int p_index, ShapeBullet *p_shape); 239 int find_shape(ShapeBullet *p_shape) const; 241 virtual void remove_shape_full(ShapeBullet *p_shape);
|
/dports/devel/godot/godot-3.2.3-stable/servers/physics/ |
H A D | collision_object_sw.cpp | 35 void CollisionObjectSW::add_shape(ShapeSW *p_shape, const Transform &p_transform, bool p_disabled) { in add_shape() argument 38 s.shape = p_shape; in add_shape() 44 p_shape->add_owner(this); in add_shape() 53 void CollisionObjectSW::set_shape(int p_index, ShapeSW *p_shape) { in set_shape() argument 57 shapes.write[p_index].shape = p_shape; in set_shape() 59 p_shape->add_owner(this); in set_shape() 86 void CollisionObjectSW::remove_shape(ShapeSW *p_shape) { in remove_shape() argument 91 if (shapes[i].shape == p_shape) { in remove_shape()
|
/dports/devel/godot-tools/godot-3.2.3-stable/servers/physics/ |
H A D | collision_object_sw.cpp | 35 void CollisionObjectSW::add_shape(ShapeSW *p_shape, const Transform &p_transform, bool p_disabled) { in add_shape() argument 38 s.shape = p_shape; in add_shape() 44 p_shape->add_owner(this); in add_shape() 53 void CollisionObjectSW::set_shape(int p_index, ShapeSW *p_shape) { in set_shape() argument 57 shapes.write[p_index].shape = p_shape; in set_shape() 59 p_shape->add_owner(this); in set_shape() 86 void CollisionObjectSW::remove_shape(ShapeSW *p_shape) { in remove_shape() argument 91 if (shapes[i].shape == p_shape) { in remove_shape()
|
/dports/devel/godot-tools/godot-3.2.3-stable/servers/physics_2d/ |
H A D | collision_object_2d_sw.cpp | 35 void CollisionObject2DSW::add_shape(Shape2DSW *p_shape, const Transform2D &p_transform, bool p_disa… in add_shape() argument 38 s.shape = p_shape; in add_shape() 46 p_shape->add_owner(this); in add_shape() 55 void CollisionObject2DSW::set_shape(int p_index, Shape2DSW *p_shape) { in set_shape() argument 59 shapes.write[p_index].shape = p_shape; in set_shape() 61 p_shape->add_owner(this); in set_shape() 117 void CollisionObject2DSW::remove_shape(Shape2DSW *p_shape) { in remove_shape() argument 122 if (shapes[i].shape == p_shape) { in remove_shape()
|