Infinite Runner Engine v1.9
Public Types | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.Feedbacks.MMF_Rigidbody Class Reference

this feedback will let you apply forces and torques (relative or not) to a Rigidbody More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_Rigidbody:
MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Modes { AddForce , AddRelativeForce , AddTorque , AddRelativeTorque }
 sets the inspector color for this feedback More...
 

Public Attributes

Rigidbody TargetRigidbody
 the rigidbody to target on play More...
 
Modes Mode = Modes.AddForce
 the selected mode for this feedback More...
 
Vector3 MinForce
 the min force or torque to apply More...
 
Vector3 MaxForce
 the max force or torque to apply More...
 
ForceMode AppliedForceMode = ForceMode.Impulse
 the force mode to apply More...
 

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once More...
 

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Custom Play, we apply our force or torque to the target rigidbody More...
 

Protected Attributes

Vector3 _force
 

Additional Inherited Members

Detailed Description

this feedback will let you apply forces and torques (relative or not) to a Rigidbody

Member Enumeration Documentation

◆ Modes

sets the inspector color for this feedback

Enumerator
AddForce 
AddRelativeForce 
AddTorque 
AddRelativeTorque 

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_Rigidbody.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On Custom Play, we apply our force or torque to the target rigidbody

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _force

Vector3 MoreMountains.Feedbacks.MMF_Rigidbody._force
protected

◆ AppliedForceMode

ForceMode MoreMountains.Feedbacks.MMF_Rigidbody.AppliedForceMode = ForceMode.Impulse

the force mode to apply

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Rigidbody.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ MaxForce

Vector3 MoreMountains.Feedbacks.MMF_Rigidbody.MaxForce

the max force or torque to apply

◆ MinForce

Vector3 MoreMountains.Feedbacks.MMF_Rigidbody.MinForce

the min force or torque to apply

◆ Mode

Modes MoreMountains.Feedbacks.MMF_Rigidbody.Mode = Modes.AddForce

the selected mode for this feedback

◆ TargetRigidbody

Rigidbody MoreMountains.Feedbacks.MMF_Rigidbody.TargetRigidbody

the rigidbody to target on play


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