C# Class MixedIKManager, vive-holojam

Inheritance: MonoBehaviour
Datei anzeigen Open project: nyu-vr-research/vive-holojam

Public Properties

Property Type Description
LimbWidth float
LimbsMaterial Material
LowerLimbWidth float
SpineOffset Vector3
_id_ int
elbowDirection Vector3
elbowScale float
footOffset Vector3
globalScale float
handOffset Vector3
headOffset Vector3
hint Vector3
kneeScale float
lineColor Color
lineDetail int
lowerArmLength float
maximumMidOffset float
minimumMidOffset float
mocapHeadset Transform
mocapLeftAnkle Transform
mocapLeftWrist Transform
mocapRightAnkle Transform
mocapRightWrist Transform
renderLines bool
showGizmos bool
snapHips bool
upperArmLength float

Public Methods

Method Description
Bind ( Transform mocap, Transform bone, Vector3 offset ) : void
BindAvatarToMocap ( ) : void
CheckForResize ( ) : void
FindSkeletalParts ( ) : void
IKArm ( Transform startJoint, Transform midJoint, Transform endJoint, float a, float b, bool rightArm ) : void
OnDrawGizmos ( ) : void
PositionBody ( ) : void
RebuildLine ( GameObject g, Vector3 points, GameObject e ) : void
ResizeAvatar ( ) : void
ResizeAvatarWithID ( int id ) : void
SolveHipsAndIK ( ) : void
SolveSpineAndOthers ( ) : void
Start ( ) : void
Update ( ) : void
averageHeadHeight ( ) : void
findHint ( Vector3 endEffectorPosition, bool right ) : Vector3
scaleConstants ( ) : void

Private Methods

Method Description
SolveForHipsPosition ( ) : Vector3
SolveHipsIntersection ( Vector3 &hitPoint ) : bool
b3 ( float t, float p0, float p1, float p2, float p3 ) : float
b3p0 ( float t, float p ) : float
b3p1 ( float t, float p ) : float
b3p2 ( float t, float p ) : float
b3p3 ( float t, float p ) : float
dot ( float a, float b ) : float
getPoints ( Vector3 points ) : Vector3[]
interp ( Vector3 P, float t ) : Vector3
interpb3 ( Vector3 points, float t ) : Vector3
normalize ( float a ) : float[]

Method Details

Bind() public method

public Bind ( Transform mocap, Transform bone, Vector3 offset ) : void
mocap Transform
bone Transform
offset Vector3
return void

BindAvatarToMocap() public method

public BindAvatarToMocap ( ) : void
return void

CheckForResize() public method

public CheckForResize ( ) : void
return void

FindSkeletalParts() public method

public FindSkeletalParts ( ) : void
return void

IKArm() public method

public IKArm ( Transform startJoint, Transform midJoint, Transform endJoint, float a, float b, bool rightArm ) : void
startJoint Transform
midJoint Transform
endJoint Transform
a float
b float
rightArm bool
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

PositionBody() public method

public PositionBody ( ) : void
return void

RebuildLine() public method

public RebuildLine ( GameObject g, Vector3 points, GameObject e ) : void
g GameObject
points Vector3
e GameObject
return void

ResizeAvatar() public method

public ResizeAvatar ( ) : void
return void

ResizeAvatarWithID() public static method

public static ResizeAvatarWithID ( int id ) : void
id int
return void

SolveHipsAndIK() public method

public SolveHipsAndIK ( ) : void
return void

SolveSpineAndOthers() public method

public SolveSpineAndOthers ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

averageHeadHeight() public method

public averageHeadHeight ( ) : void
return void

findHint() public method

public findHint ( Vector3 endEffectorPosition, bool right ) : Vector3
endEffectorPosition Vector3
right bool
return Vector3

scaleConstants() public method

public scaleConstants ( ) : void
return void

Property Details

LimbWidth public_oe property

public float LimbWidth
return float

LimbsMaterial public_oe property

public Material LimbsMaterial
return Material

LowerLimbWidth public_oe property

public float LowerLimbWidth
return float

SpineOffset public_oe property

public Vector3 SpineOffset
return Vector3

_id_ public_oe property

public int _id_
return int

elbowDirection public_oe property

public Vector3 elbowDirection
return Vector3

elbowScale public_oe property

public float elbowScale
return float

footOffset public_oe property

public Vector3 footOffset
return Vector3

globalScale public_oe property

public float globalScale
return float

handOffset public_oe property

public Vector3 handOffset
return Vector3

headOffset public_oe property

public Vector3 headOffset
return Vector3

hint public_oe property

public Vector3 hint
return Vector3

kneeScale public_oe property

public float kneeScale
return float

lineColor public_oe property

public Color lineColor
return Color

lineDetail public_oe property

public int lineDetail
return int

lowerArmLength public_oe property

public float lowerArmLength
return float

maximumMidOffset public_oe property

public float maximumMidOffset
return float

minimumMidOffset public_oe property

public float minimumMidOffset
return float

mocapHeadset public_oe property

public Transform mocapHeadset
return Transform

mocapLeftAnkle public_oe property

public Transform mocapLeftAnkle
return Transform

mocapLeftWrist public_oe property

public Transform mocapLeftWrist
return Transform

mocapRightAnkle public_oe property

public Transform mocapRightAnkle
return Transform

mocapRightWrist public_oe property

public Transform mocapRightWrist
return Transform

renderLines public_oe property

public bool renderLines
return bool

showGizmos public_oe property

public bool showGizmos
return bool

snapHips public_oe property

public bool snapHips
return bool

upperArmLength public_oe property

public float upperArmLength
return float