mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
fahhh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user