A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Crashy » Fri Apr 10, 2015 1:33 pm
Hi,
I'm trying to create a character and after that change it's pivot height using SetPlayerOrigin.
However, calling this func doesn't seem to do anything.
Is there any condition on when/how to call this function ?
Thanks.
-
Crashy
-
- Posts: 101
- Joined: Fri Dec 03, 2010 6:30 am
by Julio Jerez » Fri Apr 10, 2015 2:09 pm
how do you know is not doing anything?
in demo ../applications\demosSandbox\sdkDemos\demos\BasicPlayerController.cpp
try uncomment line 68, and enable show center mass, see if it works.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Crashy » Fri Apr 10, 2015 2:15 pm
I know it because the character falls until it's "belly" reaches the ground, that's about where it's pivot is set.
I'll try the demos to see.
-
Crashy
-
- Posts: 101
- Joined: Fri Dec 03, 2010 6:30 am
by Crashy » Fri Apr 10, 2015 7:13 pm
Just tried it in the newton demos, and this doesn't work either. I've noticed that as soon as this function is called, the small cylinder(the inner volume?) shape is rotated. It's also impossible to move the character
Is there any reason this function is "protected" by a "dAssert (0);" ?
Thanks.
-
Crashy
-
- Posts: 101
- Joined: Fri Dec 03, 2010 6:30 am
by Julio Jerez » Fri Apr 10, 2015 9:02 pm
I do no remember why I added the assert maybe the re a bug. I verify tonight.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests