14 Physics m_Physics =
null;
17 void SetDummyTransform(vector mat[4])
19 m_FixedMat[0] = mat[0];
20 m_FixedMat[1] = mat[1];
21 m_FixedMat[2] = mat[2];
22 m_FixedMat[3] = mat[3];
27 override event void EOnSimulate(IEntity owner,
float timeSlice)
33 m_Physics.SetAngularVelocity(vector.Zero);
38 override event void EOnInit(IEntity owner)
40 GetTransform(m_FixedMat);
46 SetEventMask(EntityEvent.INIT|EntityEvent.SIMULATE);
48 ref PhysicsGeomDef geoms[1];
49 autoptr PhysicsGeomDef geom =
new PhysicsGeomDef(
"", PhysicsGeom.CreateSphere(0.1),
"material/default", EPhysicsLayerDefs.VehicleCast);
54 m_Physics = Physics.CreateDynamicEx(
this, vector.Zero, 999999, geoms);
57 m_Physics.SetAngularVelocity(vector.Zero);