# SetObject3DPhysicsLinearVelocity

## Description

Sets the linear velocity vector for the object. The direction vector is automatically normilized.

## Definition

SetObject3DPhysicsLinearVelocity( objID, dirX, dirY, dirZ, initialSpeed )

void agk::SetObject3DPhysicsLinearVelocity( UINT objID, float dirX, float dirY, float dirZ, float initialSpeed )

SetObject3DPhysicsLinearVelocity( objID, vectorID, initialSpeed )

void agk::SetObject3DPhysicsLinearVelocity( UINT objID, UINT vectorID, float initialSpeed )

## Parameters

- objID - object ID
- dirX - the X component of the direction vector
- dirY - the Y component of the direction vector
- dirZ - the Z component of the direction vector
- initialSpeed - the initial speed.
- vectorID - ID of the direction vector