Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, Ayumi, 7th_zorro), 877 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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