hmi.physics.controller
Interface PhysicalController

All Known Implementing Classes:
BalanceController, BallJointController, CompoundController, FrictionController, HingeJointController, MeathookBalanceController, NoController, RagdollController, RigidBodyDamper, ScriptController, ScriptHumanoidController, ScriptJointController

public interface PhysicalController

A physical controller steers a set of required joints and desired joints. Each implementation should ensure that it is robust missing desired joints.

Author:
welberge

Method Summary
 PhysicalController copy(PhysicalHumanoid ph)
          Creates a copy of the controller
 String[] getDesiredJointIDs()
          Gets the ids of joints the controller would like to steer if available
 String getParameterValue(String name)
          Get the parameter value of parameter name, return null if not found
 String[] getRequiredJointIDs()
          Gets the ids of controlled joints
 void reset()
          Clears out all previous time dependen variables
 void setParameterValue(String name, float value)
           
 void setParameterValue(String name, String value)
           
 void setPhysicalHumanoid(PhysicalHumanoid ph)
          Links the controller to a new set of physical joints
 void update(double timeDiff)
          Updates the controller
 

Method Detail

update

void update(double timeDiff)
Updates the controller

Parameters:
timeDiff - time since last update

getRequiredJointIDs

String[] getRequiredJointIDs()
Gets the ids of controlled joints


getDesiredJointIDs

String[] getDesiredJointIDs()
Gets the ids of joints the controller would like to steer if available


reset

void reset()
Clears out all previous time dependen variables


setPhysicalHumanoid

void setPhysicalHumanoid(PhysicalHumanoid ph)
Links the controller to a new set of physical joints

Parameters:
ph - physical humanoid to link to

copy

PhysicalController copy(PhysicalHumanoid ph)
Creates a copy of the controller


setParameterValue

void setParameterValue(String name,
                       String value)

getParameterValue

String getParameterValue(String name)
Get the parameter value of parameter name, return null if not found


setParameterValue

void setParameterValue(String name,
                       float value)