|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.physics.PhysicalSegment
public abstract class PhysicalSegment
PhysicalSegment, links a RigidBody with a visual humanoid segment
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hmi.animation.VObject |
|---|
VObject.Predicate |
| Field Summary | |
|---|---|
float[] |
axis1
|
float[] |
axis2
|
RigidBody |
box
|
float[] |
hiStop
|
protected String |
id
|
JointType |
jointType
|
float[] |
loStop
|
protected String |
name
|
boolean |
onGround
|
protected String |
sid
|
PhysicalJoint |
startJoint
|
float[] |
startJointOffset
|
| Constructor Summary | |
|---|---|
PhysicalSegment()
Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
prepare the segment for removal |
abstract Mass |
createMass()
Create the appropiate mass subclass |
void |
getAngularVelocity(float[] v)
Returns the angular velocity vector in the form of a float array of length three. |
void |
getAngularVelocity(float[] vc,
int vcIndex)
Like getAngularVelocity(wa), but starting at the specified offset. |
String |
getId()
Returns an interned String that specifies the id. |
String |
getName()
Returns an interned String that specifies the name. |
void |
getRotation(float[] r)
Returns the rotation quaternion in a float array of length four. |
void |
getRotation(float[] r,
int index)
Like getRotation(ra), but starting at the specified offset. |
float[] |
getRotationBuffer()
|
void |
getScale(float[] r)
Returns the scale vector in a float array of length three. |
void |
getScale(float[] r,
int index)
Like getScale(sa), but starting at the specified offset. |
float[] |
getScaleBuffer()
|
String |
getSid()
Returns an interned String that specifies the sid. |
void |
getTranslation(float[] t)
Returns the translation vector in the form of a float array of length three |
void |
getTranslation(float[] vc,
int vcIndex)
Like getTranslation(ta), but starting at the specified offset |
float[] |
getTranslationBuffer()
|
void |
getVelocity(float[] v)
Returns the velocity vector in the form of a float array of length three. |
void |
getVelocity(float[] vc,
int vcIndex)
Like getVelocity(va), but starting at the specified offset. |
void |
set(PhysicalSegment s)
Copies everything but the physicalJoint from s |
void |
setAngularVelocity(float[] v)
Sets the angular velocity vector from a float array of length three. |
void |
setAngularVelocity(float[] vc,
int vcIndex)
Like setAngularVelocity(wa), but starting at the specified offset. |
void |
setAngularVelocity(float wx,
float wy,
float wz)
Sets the angular velocity vector from three floats. |
void |
setAxisAngle(float ax,
float ay,
float az,
float angle)
Sets the rotation quaternion derived from a rotation axis (ax, ay, az) and a rotation angle angle, specified in radians. |
void |
setEnabled(boolean enabled)
Disables or enables the segment. |
void |
setId(String n)
Set the name |
void |
setName(String n)
Sets the name for this VObject. |
void |
setRotation(float[] ra)
Sets the rotation quaternion from a float array of length four. |
void |
setRotation(float[] ra,
int raIndex)
Like setRotation(ra), but starting at the specified offset. |
void |
setRotation(float qs,
float qx,
float qy,
float qz)
Sets the rotation quaternion from four floats. |
void |
setScale(float[] sa)
Sets the scale vector from a float array of lebgth three. |
void |
setScale(float[] sa,
int saIndex)
Like setScale(sa), but starting at the specified offset |
void |
setSid(String sid)
Sets the sid for this VObject. |
void |
setTranslation(float[] ta)
Sets the translation vector from a float array of length three. |
void |
setTranslation(float[] ta,
int taIndex)
Like setTranslation(ta), but starting at the specified offset. |
void |
setTranslation(float tx,
float ty,
float tz)
Sets the current translation vector from three floats. |
void |
setVelocity(float[] v)
Sets the velocity vector from a float array of length three. |
void |
setVelocity(float[] vc,
int vcIndex)
Like setVelocity(va), but starting at the specified offset. |
void |
setVelocity(float vx,
float vy,
float vz)
Sets the velocity vector from three floats. |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public RigidBody box
public PhysicalJoint startJoint
public float[] axis1
public float[] axis2
public boolean onGround
public JointType jointType
public float[] hiStop
public float[] loStop
public float[] startJointOffset
protected String sid
protected String id
protected String name
| Constructor Detail |
|---|
public PhysicalSegment()
| Method Detail |
|---|
public void set(PhysicalSegment s)
public String getName()
VObject
getName in interface VObjectpublic void setName(String n)
VObject
setName in interface VObjectpublic void clear()
public String toString()
toString in class Objectpublic void setId(String n)
setId in interface VObjectn - the new namepublic void getAngularVelocity(float[] v)
VObject
getAngularVelocity in interface VObject
public void getAngularVelocity(float[] vc,
int vcIndex)
VObject
getAngularVelocity in interface VObjectpublic String getId()
VObject
getId in interface VObjectpublic void getRotation(float[] r)
VObject
getRotation in interface VObject
public void getRotation(float[] r,
int index)
VObject
getRotation in interface VObjectpublic String getSid()
VObject
getSid in interface VObjectpublic void getTranslation(float[] t)
VObject
getTranslation in interface VObject
public void getTranslation(float[] vc,
int vcIndex)
VObject
getTranslation in interface VObjectpublic void getVelocity(float[] v)
VObject
getVelocity in interface VObject
public void getVelocity(float[] vc,
int vcIndex)
VObject
getVelocity in interface VObjectpublic void setAngularVelocity(float[] v)
VObject
setAngularVelocity in interface VObject
public void setAngularVelocity(float[] vc,
int vcIndex)
VObject
setAngularVelocity in interface VObject
public void setAngularVelocity(float wx,
float wy,
float wz)
VObject
setAngularVelocity in interface VObject
public void setAxisAngle(float ax,
float ay,
float az,
float angle)
VObject
setAxisAngle in interface VObjectpublic void setRotation(float[] ra)
VObject
setRotation in interface VObject
public void setRotation(float[] ra,
int raIndex)
VObject
setRotation in interface VObject
public void setRotation(float qs,
float qx,
float qy,
float qz)
VObject
setRotation in interface VObjectpublic void setSid(String sid)
VObject
setSid in interface VObjectpublic void setTranslation(float[] ta)
VObject
setTranslation in interface VObject
public void setTranslation(float[] ta,
int taIndex)
VObject
setTranslation in interface VObject
public void setTranslation(float tx,
float ty,
float tz)
VObject
setTranslation in interface VObjectpublic void setVelocity(float[] v)
VObject
setVelocity in interface VObject
public void setVelocity(float[] vc,
int vcIndex)
VObject
setVelocity in interface VObject
public void setVelocity(float vx,
float vy,
float vz)
VObject
setVelocity in interface VObjectpublic void setEnabled(boolean enabled)
enabled - public float[] getRotationBuffer()
public void getScale(float[] r)
VObject
getScale in interface VObjectpublic void setScale(float[] sa)
VObject
setScale in interface VObject
public void setScale(float[] sa,
int saIndex)
VObject
setScale in interface VObject
public void getScale(float[] r,
int index)
VObject
getScale in interface VObjectpublic float[] getScaleBuffer()
public float[] getTranslationBuffer()
public abstract Mass createMass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||