This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+40
View File
@@ -0,0 +1,40 @@
#pragma once
#include "V8World/RigidJoint.h"
namespace RBX {
class SnapJoint : public RigidJoint
{
private:
///////////////////////////////////////////////////
// Joint
/*override*/ virtual JointType getJointType() const {return SNAP_JOINT;}
///////////////////////////////////////////////////
// WeldJoint
static bool compatibleSurfaces(
Primitive* p0,
Primitive* p1,
NormalId nId0,
NormalId nId1);
public:
SnapJoint() {}
SnapJoint(Primitive* prim0, Primitive* prim1, const CoordinateFrame& c0, const CoordinateFrame &c1)
: RigidJoint(prim0, prim1, c0, c1)
{}
~SnapJoint() {}
static SnapJoint* canBuildJoint(
Primitive* p0,
Primitive* p1,
NormalId nId0,
NormalId nId1);
};
} // namespace