Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 09/28/26 10:17
A3 projects
by rayp. 09/27/26 20:38
Parent/child object
by rayp. 09/27/26 14:43
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (ratz, ukgamer), 2,861 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
KelleyAbbey, Yopachi, Knull, Opus, Jubilee
19242 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