-->

PhysicsAction

If you prefer a more technical reference, visit the NextText Javadoc.

Name

PhysicsAction

Description

Every Action in this package should be a descendant of this class. PhysicsAction introduces a new set of physics properties, and provide the usual accessors for them. Mass Velocity Force AngularVelocity AngularForce (Torque) Properties to add in the future include elasticity and mass. A method to get absolute velocity may also be useful.

Usage

Run applet | Download

TEST

Constructor

new PhysicsAction()

Parameters

to :

acceleration :

angAcc :

angularForce :

force :

Methods

applyAcceleration(TextObject to, processing.core.PVector acceleration)

applyAngularAcceleration(TextObject to, float angAcc)

applyAngularForce(TextObject to, float angularForce)

applyForce(TextObject to, processing.core.PVector force)

getAngularVelocity(TextObject to)

getMass(TextObject to)

getRequiredProperties()

getVelocity(TextObject to)

Related

TEST

2006 - 2008 © Obx Labs/Jason Lewis

CC-GNU GPL
This software is licensed under the CC-GNU GPL.