|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.physics.controller.RagdollController
public class RagdollController
Ragdoll controller: just let all joints hang loose... Controls all joints, but does not steer them in any way. This controller allows us to ensure that all joints will be physically steerd, and that the right mixed system will be selected for that. you may also pass a limited set of joints in the constructor, in which case only that limited set is controlled in ragdoll fashion, instead of the default 'all hanim joints'. NOTE: THIS CONTROLLER WILL NOT WORK IF YOU SET IT TO CONTROL JOINTS NOT PRESENT IN THE PHUMAN :( //TODO //FIXME
| Field Summary | |
|---|---|
private String[] |
jointIDs
desired Joints to be steered ragdoll-fashion. |
private PhysicalHumanoid |
ph
|
private String[] |
reqJointIDs
|
| Constructor Summary | |
|---|---|
RagdollController()
|
|
RagdollController(PhysicalHumanoid p)
|
|
RagdollController(PhysicalHumanoid p,
String[] newJointIDs)
|
|
| 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 |
setJointIDs(String[] newJointIDs)
|
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
void |
setPhysicalHumanoid(PhysicalHumanoid p)
Links the controller to a new set of physical joints |
void |
update(double timeDiff)
Updates the controller |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PhysicalHumanoid ph
private String[] jointIDs
private String[] reqJointIDs
| Constructor Detail |
|---|
public RagdollController(PhysicalHumanoid p,
String[] newJointIDs)
public RagdollController()
public RagdollController(PhysicalHumanoid p)
| Method Detail |
|---|
public void reset()
PhysicalController
reset in interface PhysicalControllerpublic void setPhysicalHumanoid(PhysicalHumanoid p)
PhysicalController
setPhysicalHumanoid in interface PhysicalControllerp - physical humanoid to link topublic void setJointIDs(String[] newJointIDs)
public String[] getRequiredJointIDs()
PhysicalController
getRequiredJointIDs in interface PhysicalControllerpublic String[] getDesiredJointIDs()
PhysicalController
getDesiredJointIDs in interface PhysicalControllerpublic void update(double timeDiff)
PhysicalController
update in interface PhysicalControllertimeDiff - time since last updatepublic PhysicalController copy(PhysicalHumanoid ph)
PhysicalController
copy in interface PhysicalControllerpublic String getParameterValue(String name)
PhysicalController
getParameterValue in interface PhysicalController
public void setParameterValue(String name,
String value)
setParameterValue in interface PhysicalController
public void setParameterValue(String name,
float value)
setParameterValue in interface PhysicalController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||