Gamestudio Links
Zorro Links
Newest Posts
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
Camera always moves upwards?
by NeoDumont. 11/14/25 16:32
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 8,527 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tritom, sheliepaley, Blueguy, blobplayintennis, someone2
19178 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
fix 2 entities together #406377
08/18/12 18:09
08/18/12 18:09
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
G
gameplan Offline OP
Member
gameplan  Offline OP
Member
G

Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
Hi,

I need to glue 2 physx-entities together (while the game is running), that they cant move relative to each other, but I can not find any phyx-code that is doning this. I tried to add a constrait, and locked all DOF, but both entities are still moveing different. They dont seem really connected.

Does anyone have an idea?

thanks


Version: A8 free
OS: Windows 10
Re: fix 2 entities together [Re: gameplan] #406402
08/19/12 14:26
08/19/12 14:26
Joined: Sep 2006
Posts: 36
Tempe, AZ
B
bpc31 Offline
Newbie
bpc31  Offline
Newbie
B

Joined: Sep 2006
Posts: 36
Tempe, AZ
A8 has pXent_addshape.

In your player action you can do something like:

ENTITY* player_cowling = ent_create("cowling.mdl", nullvector, NULL);
ENTITY* player_cockpit = ent_create("cockpit.mdl", nullvector, NULL);
pXent_addshape(my, player_cowling, PH_BOX);
pXent_addshape(my, player_cockpit, PH_BOX);


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1