NodotProject / nodot

A video game node library for Godot 4
https://nodotproject.github.io/nodot/
MIT License
329 stars 11 forks source link

Environment impact damage #123

Closed krazyjakee closed 1 year ago

krazyjakee commented 1 year ago

Addresses an issue related to environment impact damage in our project.

For the ThirdPersonCamera, I have added a check to ensure that the camera only processes physics if there is a valid target.

For RigidBreakable3D, I have modified the condition for checking angular velocity. Previously, the condition checked for non-zero angular velocity and at least one contact. This prevented damage when the object isn't moving. By removing the check, the object can now be damaged by objects hitting it.

In the Mover3D node, I have added a reset function that resets the position and rotation of the target node to their original values. This provides a convenient way to loop animations.

Closes #109