mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 23:05:38 +00:00
ExtendedMove class and support
The ExtendedMove class can optionally replace the standard Move class to allow the passing of absolute position and rotation information from the client's input device to the server. It is enabled by changing $TORQUE_EXTENDED_MOVE to true in buildFiles/config/project.conf and re-running the project generator.
This commit is contained in:
parent
404cffc11a
commit
35374f939e
15 changed files with 1262 additions and 27 deletions
|
|
@ -51,10 +51,16 @@ struct Move
|
|||
bool freeLook;
|
||||
bool trigger[MaxTriggerKeys];
|
||||
|
||||
void pack(BitStream *stream, const Move * move = NULL);
|
||||
void unpack(BitStream *stream, const Move * move = NULL);
|
||||
void clamp();
|
||||
void unclamp();
|
||||
Move();
|
||||
|
||||
virtual void pack(BitStream *stream, const Move * move = NULL);
|
||||
virtual void unpack(BitStream *stream, const Move * move = NULL);
|
||||
virtual void clamp();
|
||||
virtual void unclamp();
|
||||
|
||||
protected:
|
||||
bool packMove(BitStream *stream, const Move* basemove, bool alwaysWriteAll);
|
||||
bool unpackMove(BitStream *stream, const Move* basemove, bool alwaysReadAll);
|
||||
};
|
||||
|
||||
extern const Move NullMove;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue