Hey,
I am trying to make the polygon collider update everyframe so it is not static at one position, Would any of you guys have an idea on how to do this?
I wouldn’t recommend that, since it will be quite performance-heavy (much like updating a mesh collider every frame is a non-starter).
–Eric
Hmm, I have this jumping animation that needs to be a certain height, this was done by “baking” the height into the animation. So i need to move the collider every animation frame, would you have a solution to my problem?
I’d suggest having an object where you move the transform to match the animation and the collider goes with it. So you’d have a collision object that’s separate from the animated object. It might be better to make animation in a more versatile way, though, rather than baking the height like that.
–Eric
I am looking to do a similar thing, not necessarily every frame, but using the animation frames to update the Polygon Collider shape…if anyone figures is out…please post ![]()
I also want to to this…
I have a cartoon-style car that if you press a key the wheels will elevate so the position of the ceiling of the car is diferent… I so this so some objects can pass under the car, so the collider really has to be modified…
Can you guys please tell me the solution to this?
Thanks! ![]()
You could attach two collider components with different shapes, and disable/enable them as needed.
–Eric