
MotorAPI
An interface for integrating custom character motors into ror2Details
Helps non-kinematic character developers to change and fix the following ror2 behaviours on a per body basis:
- Make freeze not delete rigidbody velocity
- Improve Volcanic Egg and Eccentric Vase handling
- Easy jump pad interaction
- Override camera mode
- Add a spawn offset
- Disable screen shake
- Control if sprint crosshair should override normal crosshair
- Fix freeze not applying if the body doesnt have an animator
- Fix Headstompers not accelerating or exploding
- Fix Milky Chrysalis never exiting hover state
- Fix Goobo effect not applying
- Fix Antler Shield shards not spawning
To implement, add the IMotor interface to a body component, and setup a MotorParams value. To override camera mode, implement ICameraModeProvider onto a body component.
Also includes 'KccBodyMover' as an alternative to Kcc's 'BasicPhysicsMoverController', but doesnt require adding a seperate standable platform on a character.