Package org.vivecraft.api.data
Enum Class VRBodyPart
- All Implemented Interfaces:
- Serializable,- Comparable<VRBodyPart>,- Constable
Corresponds to the different tracked device roles that are supported by Vivecraft.
- Since:
- 1.3.0
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptioncorresponds to the player's headset, so it is at their eye positionMain hand of the player, this is the hand the player points with.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanavailableInMode(FBTMode fbtMode) Whether this body part type is available in the provided full-body tracking mode.booleanisFoot()Checks ifthisVRBodyPart is a footbooleanisHand()Checks ifthisVRBodyPart is a handopposite()Gets the VRBodyPart which is the same type but on the opposite side of the body.static VRBodyPartReturns the enum constant of this class with the specified name.static VRBodyPart[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
MAIN_HANDMain hand of the player, this is the hand the player points with. Which one that is can be identified withVRPose.isLeftHanded()- Since:
- 1.3.0
 
- 
OFF_HAND- Since:
- 1.3.0
 
- 
RIGHT_FOOT- Since:
- 1.3.0
 
- 
LEFT_FOOT- Since:
- 1.3.0
 
- 
WAIST- Since:
- 1.3.0
 
- 
RIGHT_KNEE- Since:
- 1.3.0
 
- 
LEFT_KNEE- Since:
- 1.3.0
 
- 
RIGHT_ELBOW- Since:
- 1.3.0
 
- 
LEFT_ELBOW- Since:
- 1.3.0
 
- 
HEADcorresponds to the player's headset, so it is at their eye position- Since:
- 1.3.0
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
oppositeGets the VRBodyPart which is the same type but on the opposite side of the body. VRBodyParts that don't have an opposite counterpart will return itself.- Returns:
- the opposite VRBodyPart
- Since:
- 1.3.0
 
- 
availableInModeWhether this body part type is available in the provided full-body tracking mode.- Parameters:
- fbtMode- The full-body tracking mode to check.
- Returns:
- Whether this body part has available data in the provided mode.
- Since:
- 1.3.0
 
- 
isFootpublic boolean isFoot()Checks ifthisVRBodyPart is a foot- Returns:
- Whether this body part is a foot.
- Since:
- 1.3.0
 
- 
isHandpublic boolean isHand()Checks ifthisVRBodyPart is a hand- Returns:
- Whether this body part is a hand.
- Since:
- 1.3.0
 
 
-