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

Ai adds instanced physics materials to other objects #54

Open
neshail opened this issue Dec 16, 2021 · 5 comments
Open

Ai adds instanced physics materials to other objects #54

neshail opened this issue Dec 16, 2021 · 5 comments

Comments

@neshail
Copy link

neshail commented Dec 16, 2021

Ai changes the physics materials set in scene.
Which fights with our objects setting specific physics materials in code in order to achieve different outcomes.As a result playmaker cannot get the new Instanced physics materials or set them to work with our custom physics.Which results in both physics fighting of setting different physics materials.So as the ai is driving on different objects in terrain and road we can no longer get these physics materials and set them.

@JustInvoke
Copy link
Owner

Unfortunately I don't intend to officially support PlayMaker at any point in the future.

@neshail
Copy link
Author

neshail commented Dec 18, 2021 via email

@JustInvoke
Copy link
Owner

Ok I think this is because there were places where physic materials were being referenced through collider.material which creates (and I believe assigns) a new instance of a material. I just committed a change where these are replaced with collider.sharedMaterial which should allow you to modify physic materials at runtime and not have them be overwritten.

@neshail
Copy link
Author

neshail commented Dec 22, 2021 via email

@JustInvoke
Copy link
Owner

I'm not sure what's causing the bumpiness other than possibly the use of wheels groups on VehicleParent. You can try setting the array size to 0 to disable them. Let me know if you catch the suspension error again.

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