Class GKAgent2D

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class GKAgent2D
extends GKAgent
implements NSSecureCoding
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • GKAgent2D

      public GKAgent2D()
    • GKAgent2D

      protected GKAgent2D​(NSObject.Handle h, long handle)
    • GKAgent2D

      protected GKAgent2D​(NSObject.SkipInit skipInit)
  • Method Details

    • getPosition

      public VectorFloat2 getPosition()
    • setPosition

      public void setPosition​(VectorFloat2 v)
    • getVelocity

      public VectorFloat2 getVelocity()
    • getRotation

      public float getRotation()
    • setRotation

      public void setRotation​(float v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • update

      public void update​(double seconds)
      Overrides:
      update in class GKComponent