1 [
EntityEditorProps(
category:
"GameBase/Joints", description:
"Physics joint - Fixed", sizeMin:
"-0.05 -0.05 -0.05", sizeMax:
"0.05 0.05 0.05", color:
"0 0 255 255")]
14 override void DebugDisplay()
20 vector axisVec = mat[0];
21 vector axisVec2 = mat[1];
22 vector axisVec3 = mat[2];
23 Shape.Create(ShapeType.LINE, ARGB(255, 0, 255, 0), ShapeFlags.ONCE|ShapeFlags.NOZBUFFER, axisVec * -0.05 + pos, axisVec * 0.05 + pos);
24 Shape.Create(ShapeType.LINE, ARGB(255, 0, 255, 0), ShapeFlags.ONCE|ShapeFlags.NOZBUFFER, axisVec2 * -0.05 + pos, axisVec2 * 0.05 + pos);
25 Shape.Create(ShapeType.LINE, ARGB(255, 0, 255, 0), ShapeFlags.ONCE|ShapeFlags.NOZBUFFER, axisVec3 * -0.05 + pos, axisVec3 * 0.05 + pos);
29 override void CreateJoint(IEntity parent, IEntity child, vector jointMat1[4], vector jointMat2[4])
31 m_Joint = PhysicsJoint.CreateFixed(parent, child, jointMat1[3], jointMat2[3], m_CollisionBlocker, -1);