public static GetTriangleCollidable ( Microsoft.Xna.Framework.Vector3 &a, Microsoft.Xna.Framework.Vector3 &b, Microsoft.Xna.Framework.Vector3 &c ) : TriangleCollidable | ||
a | Microsoft.Xna.Framework.Vector3 | First vertex in the triangle. |
b | Microsoft.Xna.Framework.Vector3 | Second vertex in the triangle. |
c | Microsoft.Xna.Framework.Vector3 | Third vertex in the triangle. |
리턴 | TriangleCollidable |
public static TriangleCollidable GetTriangleCollidable(ref Vector3 a, ref Vector3 b, ref Vector3 c)
{
var tri = SubPoolTriangleCollidables.Take();
var shape = tri.Shape;
shape.vA = a;
shape.vB = b;
shape.vC = c;
var identity = RigidTransform.Identity;
tri.UpdateBoundingBoxForTransform(ref identity);
return tri;
}
PhysicsResources::GetTriangleCollidable ( ) : TriangleCollidable |