Military vehicle implementation
by Zealander · in Torque 3D Professional · 01/30/2010 (11:05 am) · 1 replies
Hi all
I am creating some kind of military strategy game.
I have to operate with more than 20 vehicles and 100 soldiers(outside and inside a vehicle), almost all will be controlled by AI.
And big terrains will be used, so I have to use PhysX for this (Quickest physics engine).
I have implemented Physx vehicle in a very simple way - I just replaced all calls to mRigid by calls to pxDynamic (I used pxStatic but with getters and body) and created a client replica for the same pxDynamic.
Almost forgot, I also use pxWheel, my own class too.
I have a few questions:
1. Is it the right way to create pxDynamic in onNewDataBlock() ?
I saw 2 server calls to this method and 1 client's in my log. It is
weird why 2 server calls...
2. Why is there no client onNewDataBlock call for turret?
I am creating a turret in the same way as a vehicle(ShapeBase ancestor), but there is no client onNewDataBlock call...
I want it to be a ShapeBase ancestor because there will be a gun rotating with the turret.
I use a joint to bind a hull and a turret together and want it to be breakable in the future.
Appreciate any help.
I am creating some kind of military strategy game.
I have to operate with more than 20 vehicles and 100 soldiers(outside and inside a vehicle), almost all will be controlled by AI.
And big terrains will be used, so I have to use PhysX for this (Quickest physics engine).
I have implemented Physx vehicle in a very simple way - I just replaced all calls to mRigid by calls to pxDynamic (I used pxStatic but with getters and body) and created a client replica for the same pxDynamic.
Almost forgot, I also use pxWheel, my own class too.
I have a few questions:
1. Is it the right way to create pxDynamic in onNewDataBlock() ?
I saw 2 server calls to this method and 1 client's in my log. It is
weird why 2 server calls...
2. Why is there no client onNewDataBlock call for turret?
I am creating a turret in the same way as a vehicle(ShapeBase ancestor), but there is no client onNewDataBlock call...
I want it to be a ShapeBase ancestor because there will be a gun rotating with the turret.
I use a joint to bind a hull and a turret together and want it to be breakable in the future.
Appreciate any help.
Torque Owner Zealander
Default Studio Name
mNetFlags.set(Ghostable);
mNetFlags.set(ScopeAlways);
I have client and server method calls with this net flags!
I just wonder how can Vehicle and WheeledVehicle classes work without the flags...