One Logo Pool Ball
GameplayKit · IOS API REFERENCE

GKAgent2D

class · iOS 9.0+ · SDK 27.1

class GKAgent2D

Members (7)

init

init

TypeScript
static init(): GKAgent2D
Swift declaration
init()
method · iOS 9.0+

update

TypeScript
update(seconds: number): void
Swift declaration
func update(deltaTime seconds: TimeInterval)
get · iOS 9.0+

position

TypeScript
get position(): SDKHandle
Swift declaration
var position: vector_float2 { get set }
set · iOS 9.0+

position

TypeScript
set position(value: SDKHandle)
Swift declaration
var position: vector_float2 { get set }
get · iOS 9.0+

rotation

TypeScript
get rotation(): number
Swift declaration
var rotation: Float { get set }
set · iOS 9.0+

rotation

TypeScript
set rotation(value: number)
Swift declaration
var rotation: Float { get set }
get · iOS 9.0+

velocity

TypeScript
get velocity(): SDKHandle
Swift declaration
var velocity: vector_float2 { get }

Skipped declarations

No declarations were skipped in this snapshot.

All GameplayKit types →