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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make an entity sway back and forth?
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#5
RE: How to make an entity sway back and forth?

I do this in my game:

void SwingLantern2(string &in asTimer)
{
AddPropForce("hanging_lantern_wall_10", 200, 0, 200, "world");
AddTimer(asTimer, 1.5f , "SwingLantern2");
}

Exerts a repeated force on a hanging object. It's kind of obvious by the way it jerks at the exact time the force is applied, but it's the most subtle numbers I could find.

11-10-2012, 06:25 AM
Find


Messages In This Thread
RE: How to make an entity sway back and forth? - by Damascus - 11-10-2012, 06:25 AM



Users browsing this thread: 1 Guest(s)