MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / VPathObject

Method VPathObject

Engine/source/Verve/VPath/VPathObject.cpp:35–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33//-----------------------------------------------------------------------------
34
35VPathObject::VPathObject( void ) :
36 mActive( false ),
37 mLastTime( 0 ),
38 mLastDelta( 0.f ),
39 mObject( NULL ),
40 mTimeInterp( 0.f ),
41 mPathInterp( 0.f ),
42 mPosition( 0.f, 0.f, 0.f ),
43 mOffset( 0.f, 0.f, 0.f ),
44 mOrientation( 0.f, 1.f, 0.f ),
45 mForward( true ),
46 mSpeed( 10.f ),
47 mSourceNode( 0 ),
48 mDestinationNode( 0 ),
49 mStartNode( 0 ),
50 mEndNode( 0 )
51{
52 // Init.
53 mOrientationMode.Type = k_OrientationToPath;
54 mOrientationMode.Object = NULL;
55 mOrientationMode.Point = Point3F::Zero;
56
57 // Set the initial mask.
58 mNetState.setMaskBits( k_StateInit );
59
60 // Reset Time.
61 resetTime();
62
63 // Reset Delta.
64 resetDelta();
65
66 VECTOR_SET_ASSOCIATION( mNetState );
67}
68
69VPathObject::~VPathObject( void )
70{

Callers

nothing calls this directly

Calls 1

setMaskBitsMethod · 0.45

Tested by

no test coverage detected