Extranet >> 3D Tooling >> Unity
Algemene setup:
- installeer package Input System
- bepaal de camera movement
- maak de bewegende onderdelen colliders met physics
- In ‘Event System’ scene object, klik om oude input system te vervangen. Zie stackoverflow
Links:
Editor Interface guides:
API Classes:
Positioning:
- transform.position =
- Vector3 input = Input…
- Vector3 direction = input.normalized
- Vector3 velocity = direction * speed;
- Vector3 displacement = velocity * Time.deltaTime;
- transform.position+=displacement;
- transform.Translate(displacement);