Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Ndk::VelocityComponent Class Reference

NDK class that represents the component for velocity. More...

Inherits Ndk::Component< ComponentType >, and Nz::HandledObject< T >.

Public Member Functions

 VelocityComponent (const Nz::Vector3f &velocity=Nz::Vector3f::Zero())
 Constructs a VelocityComponent object with a velocity. More...
 
VelocityComponentoperator= (const Nz::Vector3f &vel)
 Assigns the velocity to this component. More...
 

Public Attributes

Nz::Vector3f linearVelocity
 

Static Public Attributes

static ComponentIndex componentIndex
 

Detailed Description

NDK class that represents the component for velocity.

Constructor & Destructor Documentation

◆ VelocityComponent()

Ndk::VelocityComponent::VelocityComponent ( const Nz::Vector3f velocity = Nz::Vector3f::Zero())
inline

Constructs a VelocityComponent object with a velocity.

Parameters
velocityLinear velocity

Member Function Documentation

◆ operator=()

VelocityComponent & Ndk::VelocityComponent::operator= ( const Nz::Vector3f vel)
inline

Assigns the velocity to this component.

Returns
A reference to this
Parameters
velLinear velocity

The documentation for this class was generated from the following files: