Class Bodypart
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class Bodypart : MonoBehaviour
- Inheritance
-
Bodypart
- Inherited Members
-
- Extension Methods
-
Constructors
Bodypart()
Fields
animationTarget
public BodypartAnimationTarget animationTarget
Field Value
- BodypartAnimationTarget
bodypartType
public BodypartType bodypartType
Field Value
- BodypartType
joint
public ConfigurableJoint joint
Field Value
- ConfigurableJoint
movementForceMultiplier
public float movementForceMultiplier
Field Value
- float
player
Field Value
- Player
rig
Field Value
- Rigidbody
startLocal
public Quaternion startLocal
Field Value
- Quaternion
Methods
AddOpposingForce(Vector3)
public void AddOpposingForce(Vector3 force)
Parameters
force
Vector3
Collide(Collision)
public void Collide(Collision collision)
Parameters
collision
Collision
Config(BodypartType)
public void Config(BodypartType partType)
Parameters
partType
BodypartType
FollowAnimJointAngularVel(Transform, Transform, float)
public void FollowAnimJointAngularVel(Transform physicsRoot, Transform animationRoot, float torque)
Parameters
physicsRoot
Transform
animationRoot
Transform
torque
float
FollowAnimJointDrive()
public void FollowAnimJointDrive()
FollowAnimJointVel(Transform, Transform, float, bool)
public void FollowAnimJointVel(Transform physicsRoot, Transform animationRoot, float force, bool addOpposingForce)
Parameters
physicsRoot
Transform
animationRoot
Transform
force
float
addOpposingForce
bool
FollowAnimSimple(Bodypart)
public void FollowAnimSimple(Bodypart hip)
Parameters
hip
Bodypart
InitPart()
OnCollisionEnter(Collision)
public void OnCollisionEnter(Collision collision)
Parameters
collision
Collision
OnCollisionStay(Collision)
public void OnCollisionStay(Collision collision)
Parameters
collision
Collision
SetTarget(BodypartAnimationTarget)
public void SetTarget(BodypartAnimationTarget bodypartAnimationTarget)
Parameters
bodypartAnimationTarget
BodypartAnimationTarget