KudanAR - Unity  1.6.0
FlyBehaviour_RigidbodyVelocity Class Reference

One method of movement used in the flying sample. This method applies velocities to rigidbodies. More...

Inherits MonoBehaviour.

Public Attributes

float minThresh = 150f
 Minimum distance the objects must be apart. More...
 
float maxThresh = 250f
 Maximum distance the objects can be apart. More...
 
float switchTime = 0.5f
 Amount of time that needs to pass before the objects change direction. More...
 
float topSpeed = 20f
 The maximum value each component of the vector can be. More...
 
GameObject brother
 Reference to the GameObject that the object this script is attached to must move around. More...
 

Detailed Description

One method of movement used in the flying sample. This method applies velocities to rigidbodies.

Member Data Documentation

◆ brother

GameObject FlyBehaviour_RigidbodyVelocity.brother

Reference to the GameObject that the object this script is attached to must move around.

◆ maxThresh

float FlyBehaviour_RigidbodyVelocity.maxThresh = 250f

Maximum distance the objects can be apart.

◆ minThresh

float FlyBehaviour_RigidbodyVelocity.minThresh = 150f

Minimum distance the objects must be apart.

◆ switchTime

float FlyBehaviour_RigidbodyVelocity.switchTime = 0.5f

Amount of time that needs to pass before the objects change direction.

◆ topSpeed

float FlyBehaviour_RigidbodyVelocity.topSpeed = 20f

The maximum value each component of the vector can be.


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