how to keep 50 quants between two or more Physic Entities?

Posted By: fabiomartins

how to keep 50 quants between two or more Physic Entities? - 09/02/13 05:47

how to keep 50 quants of distance between two or more Physic Entities?

I want move a entity but keeping a certain distance with ohter...
http://imageshack.us/photo/my-images/854/kx0i.jpg/
Posted By: 3dgs_snake

Re: how to keep 50 quants between two or more Physic Entities? - 09/02/13 06:05

Hi,

Perhaps you are looking for :


...
Posted By: fabiomartins

Re: how to keep 50 quants between two or more Physic Entities? - 09/02/13 06:18

No
see the image, the ball have to pass between the players
So pXcon_add will be a obstacle....
Posted By: fabiomartins

Re: how to keep 50 quants between two or more Physic Entities? - 09/02/13 06:21

the players will move with pXent_rotate function

Entities connected with joints, or static physics entities can not be rotated
Posted By: 3dgs_snake

Re: how to keep 50 quants between two or more Physic Entities? - 09/02/13 06:52

Hi,

I think (but not tried tongue ) you can achieve what you want using joints. But what you can also try is

  • Compose you entities from shapes (A row of players = 1 shape) so they will act as only one actor. You then need to update your entities acordingly (Using phyX3 plugin you can get shape pose, with native plugin you need to calculate this based on the relative pose).
  • Compose directly your objects from your 3d editor and create collision geometry from basic boxes or a simplified commision geometry.


You need the following functions:


PS : I think that combining your model (and creating/composing simplified collision geometry) is better as it will simplify entity management and will reduce you entity count.
© 2024 lite-C Forums