Want to allow controllers to access custom physics engine and move objects based on specified direction (Object.transform.forward, Vector3.up, etc).
void AddForce(Direction, float force)
{
Object.Move(Direction * force);
(using the character controller to stop fast objects from going through walls)
}
,I want to make a function like this that my controllers can use to move objects with my custom physics engine. (uses a small character controller in the centre of the object to stop it from going through objects).
void AddForce(Direction (vector3.up, GameObject.transform,forward), float Force)
{
Object.Move(Direction * Force * FixedTimeStep);
}