Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by Crashy » Wed Jan 09, 2019 6:20 pm
Hi,
I'm trying to do a raycast against a collision that is scaled to [0.1,0.1,0.1], but NewtonWorldRayCast doesn't return any result.
If I remove the scale, everything works as expected.
Collision detection seems to work perfectly in any case though.
Thanks.
-
Crashy
-
- Posts: 101
- Joined: Fri Dec 03, 2010 6:30 am
by Crashy » Wed Jan 09, 2019 6:28 pm
Whoops, I've found my error:
I was scaling the collision by using a scaled collision matrix.
However, the right way to scale a collision is to use:
- Code: Select all
NewtonCollisionSetScale()
Now it's working as expected
-
Crashy
-
- Posts: 101
- Joined: Fri Dec 03, 2010 6:30 am
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 6 guests