mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape
This commit is contained in:
@@ -54,6 +54,11 @@ void btRayShape::setLength(btScalar p_length) {
|
||||
reload_cache();
|
||||
}
|
||||
|
||||
void btRayShape::setSlipsOnSlope(bool p_slipsOnSlope) {
|
||||
|
||||
slipsOnSlope = p_slipsOnSlope;
|
||||
}
|
||||
|
||||
btVector3 btRayShape::localGetSupportingVertex(const btVector3 &vec) const {
|
||||
return localGetSupportingVertexWithoutMargin(vec) + (m_shapeAxis * m_collisionMargin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user