CONSTRAINT_POINT

Someone can help you.

CONSTRAINT_POINT

PostPosted by slapin » 29 Dec 2016, 13:20

Hi, all!

Have anybody tried using point constraint?
It looks like there is some bug - constraint_ field is always NULL
and everything is silently ignored except warning about worldPosition.
All other constraints (hinge, conetwist, slider) do not have this problem.
User avatar
slapin
Some active
Some active
 
Posts: 63
Joined: 15 Sep 2016, 20:15

Re: CONSTRAINT_POINT

PostPosted by godan » 29 Dec 2016, 14:16

Yep, I agree that this constraint does not seem to be working properly. I can get the rigid bodies moving, but no constraint interaction at all as far as I can see.

Also, what exactly is this thing supposed to do? My understanding is that, given two rigid bodies and two local frames, this constraints creates a spring between them (thus keeping them a certain distance apart). Is that right? If so, perhaps it should be renamed to Spring or Length constraint?
User avatar
godan
Active user
Active user
 
Posts: 122
Joined: 23 Sep 2014, 20:28

Re: CONSTRAINT_POINT

PostPosted by Mike » 29 Dec 2016, 15:44

It's Bullet 'Point to Point' constraint, hence its name in Urho3D.
It features rotation around the pivots, and no translation.
It works perfectly and can be used for example as a mouse picker, as demonstrated in Bullet demos.
User avatar
Mike
Moderator
Moderator
 
Posts: 353
Joined: 16 Jan 2014, 20:35
Location: France

Re: CONSTRAINT_POINT

PostPosted by slapin » 29 Dec 2016, 18:01

Well, it probably works in Bullet but definitely doesn't work in Urho as constraint_ is always NULL.
User avatar
slapin
Some active
Some active
 
Posts: 63
Joined: 15 Sep 2016, 20:15


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests