Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help making wheel spin continuesly!
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#5
RE: help making wheel spin continuesly!

Here
void RotatePropToSpeed(string& asName, float afAcc, float afGoalSpeed, float afAxisX, float afAxisY, float afAxisZ, bool abResetSpeed, string& asOffsetArea);

Additional info:


Rotates the prop up to a set speed.asName - internal name
afAcc - acceleration
afGoalSpeed - desired speed
afAxisX - rotation around X axis
afAxisY - rotation around Y axis
afAxisZ - rotation around Z axis
abResetSpeed - determines whether the speed is resetted after goal speed is reached
asOffsetArea - the area to rotate around, if ””, then the center of the body is used
Note: The entity you want to rotate MUST be a “StaticObject” entity!


Try this, and experiment with each of the values. If the pipe is rotating the wrong way, you used an incorrect axis. You may need to use 2 axises if neither work alone. As I said, experiment.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 09-09-2012, 07:02 PM by Robby.)
09-09-2012, 07:01 PM
Website Find


Messages In This Thread
help making wheel spin continuesly! - by bjaffedj - 09-09-2012, 05:48 PM
RE: help making wheel spin continuesly! - by Robby - 09-09-2012, 07:01 PM



Users browsing this thread: 1 Guest(s)