mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "V8World/Joint.h"
|
||||
#include "Util/Extents.h"
|
||||
#include "Util/Face.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
class Kernel;
|
||||
class Channel;
|
||||
class Connector;
|
||||
class Point;
|
||||
class Primitive;
|
||||
|
||||
class MultiJoint : public Joint
|
||||
{
|
||||
private:
|
||||
typedef Joint Super;
|
||||
int numConnector;
|
||||
Point* point[8];
|
||||
|
||||
bool pointsAligned() const;
|
||||
void init(int numBreaking);
|
||||
int numBreakingConnectors;
|
||||
|
||||
bool validateMultiJoint();
|
||||
|
||||
protected:
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Edge
|
||||
/*override*/ void putInKernel(Kernel* kernel);
|
||||
/*override*/ void removeFromKernel();
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Joint
|
||||
/*override*/ bool isBroken() const;
|
||||
|
||||
Connector* connector[4]; // NormalBreakConnector
|
||||
|
||||
void addToMultiJoint(Point* point0, Point* point1, Connector* _connector);
|
||||
Point* getPoint(int id);
|
||||
Connector* getConnector(int id);
|
||||
|
||||
float getJointK();
|
||||
|
||||
MultiJoint(int numBreaking);
|
||||
|
||||
MultiJoint(
|
||||
Primitive* p0,
|
||||
Primitive* p1,
|
||||
const CoordinateFrame& jointCoord0,
|
||||
const CoordinateFrame& jointCoord1,
|
||||
int numBreaking);
|
||||
|
||||
~MultiJoint();
|
||||
};
|
||||
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user