Physics Question: Rotation and Drift

0 favourites
  • 1 posts
From the Asset Store
Awesome drifts on auto generate way,tap to steer right.
  • EDIT: Figured out my silly mistake right after I posted this. LMB click is a trigger and running Every Tick as a sub-event make the tick event only fire once.

    If I were to give a circular object Physics and have it set to apply a Force towards another target object on mouse click. I also apply a Torque at the same time to give it rotation.

    What I would like to do after this point is have the Physics object drift to the left or right based on it's rotation and angular velocity. Imagine a spinning top given forward momentum that gradually veers to the right when spinning clockwise, with the amount veered based on the current speed it is spinning at.

    I have everything working as in the first paragraph, but I've tried numerous methods to get the object to drift without success. For Example:

    --> On LMB: Object | Apply Physics Force 10 toward (target.x, target.y) and Apply Physics Torque 50

    Sub Events:

    A)    Every Tick: Object | Move object.Physics.AngularVelocity at angle 0

    B)    Every Tick: Object | Apply Physics impulse (object.Physics.AngularVelocity,0)

    EDIT

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)