qc.arcade.RigidBody.accelerateToObject

Prototype

  • void accelerateToObject(destination, speed, xSpeedMax, ySpeedMax)

Parameters

Parameter Type Description
destination object The display object to move.
speed number The speed it will accelerate in pixels per second.
xSpeedMax number The maximum x velocity the display object can reach.
ySpeedMax number The maximum x velocity the display object can reach.

Description

Move to an object through a specified acceleration.