-
Notifications
You must be signed in to change notification settings - Fork 0
Orb Movement Blocks
SittingFox edited this page Feb 19, 2015
·
7 revisions
Movement of the orb is controlled here, from the orb's speed to whether or not the orb should orbit around the player.

orb.setVelocity( 0 );
orb.setVelocity( 5 );
orb.setVelocity( 15 );
orb.setVelocity( 50 );

orb.orbitPlayer( distance, time );

orb.orbitCreator( distance, time );
orb.disableOrbit();

orb.lockToPlayerRotation( distance );
orb.unlockToPlayerRotation();
orb.turnLeft( 90 );
orb.turnUp( 90 );
orb.turnRight( 90 );
orb.turnDown( 90 );
orb.transform.rotation = Random.rotation;
orb.transform.rotation = Quaternion.LookRotation(Vector3.up, orb.transform.up);
orb.transform.rotation = Quaternion.LookRotation(-Vector3.up, orb.transform.up);
orb.pointAtPlayer();
orb.pointAtOwner();