AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkSprite.SetPhysicsVelocity Method (TAgkVector)

Immediately sets the sprite's velocity to the given direction.

Syntax
Pascal
procedure SetPhysicsVelocity(const Velocity: TAgkVector); overload;
Parameters 
Description 
const Velocity: TAgkVector 
The new velocity. 

This is an abrupt change that might not look right during the physics simulation, forces and impulses are the preferred approach to influencing velocity.

Copyright (c) 2012. All rights reserved.