Code:
- Code: Select all
IPhysicsObject *pPhysics_this = this->VPhysicsGetObject();
float mass = pPhysics_this->GetMass();
But the problem is pPhysics_this is null.
In other portions of the program this code works fine, but in the think function it doesn't.
Does anyone have an idea why?
[thinking something about the VPhysicsObject maybe not initialized (or is destroyed) at the time the think is called, but not sure]



