Game Development Community

Rotate Player Model 180 degrees

by BrokeAss Games · in Torque Game Engine · 10/14/2006 (6:01 am) · 3 replies

I've been fighting w/ this feature/bug for a bit now.
I need to "perma" rotate the player (kork) 180 degrees on the Z axis.
I do not mean %obj.setTransform(%trans);.
The end result I'm looking for is Kork facing the screen while running around.
If you were driving the buggy, the buggy would be backwards and you'd be looking at the headlights.
This sounded easy, but is becoming a real pain.
Any help?

Ari

#1
10/14/2006 (2:02 pm)
Substitute a reversed model while running backwards.

I take it you are running into the problem of putting a rotation on top of the rotation applied by rotating the character in world space? Are you doing this from C++ or script.
#2
10/15/2006 (1:24 am)
I nailed it in the workflow of the art (modeling program).
Thanks for replying though Frank.
Trying to do this via engine code (player.cc) was harder than I thought and in the end wasn't worth it.
The modeling workflow I was doing kept coming up backwards and the rig wouldn't allow the skeleton to be rotated and keep it's world coordinates.
It needed it's center to be zeroed, but everything I used corrupted the rig.
That was the issue, preserving the rig but gettting the rotation.
In the end fragMotion ($35) saved the day where others failed.

Ari

P.s. To the person in GG IRC who said "get a real modeling program" several times when I asked for help: It's ok fanboy, I didn't expect an e-sheep to understand the power of a custom low poly Poser character + BVH (10s of thousands of frames) importing to Torque while retaining all it's weight and rigging. Some of us are trying to work or get support, not compare toys. Next time, don't forget your Hatoraid.
#3
10/15/2006 (1:44 am)
The reason why I was trying so hard to keep the workflow.

MilkShape:
www.brokeassgames.com/images/nudefem13.jpgwww.brokeassgames.com/images/nudefem04.jpgwww.brokeassgames.com/images/nudefem07.jpgShowTool:
www.brokeassgames.com/images/charsnap.png
Ari