Using angular velocity from another actor

Hello, I am trying to use the angular velocity of one actor in another actor using the atributes, is there a way to do this, if so, I can't figure it out.

If you can help that would be great!
Thanks!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2015

    There are two ways to use the value of an actor attribute in another actor:

    1: In the scene, double-click the actor that you want to have copy the angular velocity and then constrain its angular velocity to the other actor's by browsing through the Current Scene-->layers-->[layer name]-->[actor name] in the Attribute Browser:

    Note that unlocking an actor causes it to become an "instance" with its own rules that differ from the prototype actor. Because of this, I prefer not to unlock actors for this purpose.

    2: In the actor with the angular velocity, Constrain Attribute game.actorVelocity (real) to self.Motion.Angular Velocity. In the actor that you want to have copy that value, Constrain Attribute self.Motion.Angular Velocity to game.actorVelocity.

    Method #2 is the way that you can have actors "communicate" by passing (changing) or constraining attribute values that are game attributes and can be seen by all actors.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • OscarsCodingOscarsCoding Member Posts: 92

    Oh thanks!

Sign In or Register to comment.