Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, exile, Ayumi), 1,085 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
changing PH_HINGE limits with pXcon_setparams2 #383627
09/22/11 20:00
09/22/11 20:00
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Hi,
I set for my PH_HINGE entity boundaries like this:
Code:
pXcon_setparams2(entity, vector(-5,5,0), NULL, NULL);


So, it is a relative rigid hinge constraint. At some point of time I want to free this constraint, I then use
Code:
pXcon_setparams2(entity, vector(-360,360,0), NULL, NULL);



When I call pXcon_getposition, I get the upper and lower bounds, and I can see, that they change from +/- 0.087 -> +/- 3.141 as I wished, but no matter how I turn my hinge entity, I can't overcome the old limit of +/- 0.087 --- it looks like you set the new bounds properly, but it is not transmitted into the physics simulation?.

I tried to check the PhysX source, but it was too obfuscated there and I don't know PhysX at it's core very much, so I am sorry for not finding something there smile

P.S: please see this as well

Last edited by HeelX; 09/22/11 20:03.
Re: changing PH_HINGE limits with pXcon_setparams2 [Re: HeelX] #383653
09/23/11 08:08
09/23/11 08:08
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks - we'll look into this.

Re: changing PH_HINGE limits with pXcon_setparams2 [Re: jcl] #383676
09/23/11 15:51
09/23/11 15:51
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Thank you very much. It would be very nice if you could fix this for the release of A8.31 smile

Re: changing PH_HINGE limits with pXcon_setparams2 [Re: HeelX] #395396
02/23/12 09:04
02/23/12 09:04
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
The manual says "Please note that in the current PhysX version, angle limits can only be set once, and not modified afterwards."

Does this still hold? HeelX's post sounds like it doesn't.

Re: changing PH_HINGE limits with pXcon_setparams2 [Re: PadMalcom] #395400
02/23/12 10:13
02/23/12 10:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It still holds. It's apparently not going to be fixed and there is no simple workaround, so we have to live with that. For new limits, the hinge must be recreated.

Re: changing PH_HINGE limits with pXcon_setparams2 [Re: jcl] #395418
02/23/12 13:09
02/23/12 13:09
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Yes, that can't be done with PhysX 2.x.

For my phyiscs project I needed that behaviour to "freeze" a joint and re-open it. Then I waived that behavior and did something more stable, though: adding a second, fixed dummy constraint.

That is not possible with the original Gamestudio plugin, though. You can not manage more than one joint between two entities and the "fixed" constraint is not supported there (although you can build one with 6D joints, I think). Though, I added that to the community plugin some time ago.


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