Third Person Cover Shooter  1.6
CoverShooter.IK Class Reference

Object that calculates IK transformations. More...

Public Member Functions

 IK ()
 IK constructor. More...
 
Vector3 GetTargetPosition ()
 
void UpdateAim (Vector3 targetPosition, float delay, float weight, int minIterations, int maxIterations)
 Manipulates bones till the Target is looking towards the given target position. More...
 
void UpdateMove (Vector3 targetPosition, float delay, float weight, int minIterations, int maxIterations)
 Manipulates bones till the Target is at the given target position. More...
 
void CalcAim (Vector3 targetPosition, int minIterations, int maxIterations)
 Manipulates bones till the Target is looking towards the given target position. More...
 
void CalcMove (Vector3 targetPosition, int minIterations, int maxIterations)
 Manipulates bones till the Target is at the given target position. More...
 

Public Attributes

Transform TargetParentBone
 Current object to base IK transformations on. More...
 
Vector3 Offset
 Relative position of the target object relative to the parent bone in the skeleton hierarchy. More...
 
Quaternion OffsetOrientation = Quaternion.identity
 Orientation of the relative position. More...
 
IKBone [] Bones
 Chain of bones that are manipulated. More...
 

Detailed Description

Object that calculates IK transformations.

Constructor & Destructor Documentation

◆ IK()

CoverShooter.IK.IK ( )

IK constructor.

Member Function Documentation

◆ CalcAim()

void CoverShooter.IK.CalcAim ( Vector3  targetPosition,
int  minIterations,
int  maxIterations 
)

Manipulates bones till the Target is looking towards the given target position.

Parameters
targetPositionPosition to aim at.
iterationsNumber of iterations.

◆ CalcMove()

void CoverShooter.IK.CalcMove ( Vector3  targetPosition,
int  minIterations,
int  maxIterations 
)

Manipulates bones till the Target is at the given target position.

Parameters
targetPositionPosition to move Targe to.
iterationsNumber of iterations.

◆ GetTargetPosition()

Vector3 CoverShooter.IK.GetTargetPosition ( )

◆ UpdateAim()

void CoverShooter.IK.UpdateAim ( Vector3  targetPosition,
float  delay,
float  weight,
int  minIterations,
int  maxIterations 
)

Manipulates bones till the Target is looking towards the given target position.

Store results and update again only after a certain amount of time has passed.

◆ UpdateMove()

void CoverShooter.IK.UpdateMove ( Vector3  targetPosition,
float  delay,
float  weight,
int  minIterations,
int  maxIterations 
)

Manipulates bones till the Target is at the given target position.

Store results and update again only after a certain amount of time has passed.

Member Data Documentation

◆ Bones

IKBone [] CoverShooter.IK.Bones

Chain of bones that are manipulated.

◆ Offset

Vector3 CoverShooter.IK.Offset

Relative position of the target object relative to the parent bone in the skeleton hierarchy.

◆ OffsetOrientation

Quaternion CoverShooter.IK.OffsetOrientation = Quaternion.identity

Orientation of the relative position.

◆ TargetParentBone

Transform CoverShooter.IK.TargetParentBone

Current object to base IK transformations on.


The documentation for this class was generated from the following file: