Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPCs should be kinematic bodies #20

Open
michalpelka opened this issue Dec 16, 2024 · 0 comments
Open

NPCs should be kinematic bodies #20

michalpelka opened this issue Dec 16, 2024 · 0 comments
Assignees

Comments

@michalpelka
Copy link
Contributor

michalpelka commented Dec 16, 2024

NPCs should be kinematics bodies. Currently NPC is a robot with collider and actor attached.
That has multiple drawbacks:

I proposed to use kinematic body + raycasting in opposite direction to gravity. In contrast to current implementation:

  • It can use AZFramework::Physics API (instead of ROS 2)
  • We can remove dependency on ROS 2 gem
  • It won't need to have collision layers and groups, since we can disable kinematic body collision
  • It will work fine in non-planar scenarios (due to kinematic nature)
  • Will be more predictable.
  • Prefabs will be much simpler, without need for overrides
  • No noise from NPCs in ROS 2 topics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants