Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/05/26 02:58
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 5,678 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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