MoveMU (Move Unit) controls physics-based movement of objects with direction and velocity management. More...

Public Member Functions | |
void | Move () |
Executes the movement logic based on Direction and Velocity settings. | |
virtual void | Update () |
Public Attributes | |
PhysicsMaterial | MaterialStop |
Physics material applied when the object stops to prevent sliding. | |
Vector3 | Direction |
Current movement direction vector (normalized) | |
bool | Align |
Aligns the object's rotation to match the movement direction. | |
float | Velocity |
Current movement velocity in units per second. | |
BoxCollider | BoxCollider |
Reference to the object's box collider component. | |
Rigidbody | Rigidbody |
Reference to the object's rigidbody component. | |
Detailed Description
MoveMU (Move Unit) controls physics-based movement of objects with direction and velocity management.
This component enables objects to move in specified directions with automatic alignment and physics material switching for smooth movement and stopping behavior. It integrates with Unity's physics system for realistic motion.
Member Function Documentation
◆ Move()
void realvirtual.MoveMU.Move | ( | ) |
Executes the movement logic based on Direction and Velocity settings.
Member Data Documentation
◆ Align
bool realvirtual.MoveMU.Align |
Aligns the object's rotation to match the movement direction.
◆ BoxCollider
BoxCollider realvirtual.MoveMU.BoxCollider |
Reference to the object's box collider component.
◆ Direction
Vector3 realvirtual.MoveMU.Direction |
Current movement direction vector (normalized)
◆ MaterialStop
PhysicsMaterial realvirtual.MoveMU.MaterialStop |
Physics material applied when the object stops to prevent sliding.
◆ Rigidbody
Rigidbody realvirtual.MoveMU.Rigidbody |
Reference to the object's rigidbody component.
◆ Velocity
float realvirtual.MoveMU.Velocity |
Current movement velocity in units per second.