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

Method setTransform

Engine/source/T3D/proximityMine.cpp:363–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361//----------------------------------------------------------------------------
362
363void ProximityMine::setTransform( const MatrixF& mat )
364{
365 ShapeBase::setTransform( mat ); // Skip Item::setTransform as it restricts rotation to the Z axis
366
367 if ( !mStatic )
368 {
369 mAtRest = false;
370 mAtRestCounter = 0;
371 }
372
373 if ( mPhysicsRep )
374 mPhysicsRep->setTransform( getTransform() );
375
376 setMaskBits( Item::RotationMask | Item::PositionMask | Item::NoWarpMask );
377}
378
379void ProximityMine::setDeployedPos( const Point3F& pos, const Point3F& normal )
380{

Callers 2

setDeployedPosMethod · 0.45
explodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected