Facepunch / sbox-issues

176 stars 12 forks source link

Weird behavior with NavMesh agent + Skinned Mesh Model + Animation #6230

Open Guilhem-Pech opened 3 months ago

Guilhem-Pech commented 3 months ago

Describe the bug

If a nav mesh agent have a skinned mesh model, it behaves differently depending of the "Create bone objects" button

To Reproduce

  1. Create an object with an navmesh agent, a skinned model renderer and the model is animated
  2. Make it wander around
  3. Check/uncheck the create bone objects option

Expected behavior

Same behavior with bones object or without

Media/Files

https://github.com/user-attachments/assets/85a1f528-5817-4faa-9f33-fe8bc78fec93

Additional context

No response

aylaylay commented 2 months ago

Repro project please

Guilhem-Pech commented 2 months ago

Here you go @aylaylay

Simple scene with one agent with bone object generated and the other without the bones objects

navmeshagent_project.zip

aylaylay commented 2 months ago

Thank you sir