Hello! I have a game where you shoot things. I’m pretty good with CFrames and I use bodyVelocity for the shooting thing. I want to know how to make the object detect which side is touched and can turn in response. For example in this picture:
Yes I want to make it reflect when it hits the part. And yes, I do have code but it doesn’t work so I have to start over but I have the code that makes it turn backwards but it’s not what i want i want it to bounce according to it’s degree it touched. Like when it kind of scrapes a part i want it to turn away a little like in real life physics but if it’s almost like a head-on collision i want to make it also bounce backwards. Thanks!
Um no I already handles if the part touches it get destroyed but I’m working on an upgrade that you can buy to make your shooting things not get destroyed and can bounce. Can you explain a bit more about raycasts? Thanks!
Yes. And it must also depend on the angle it touched so that if it just scraped another part then i want it to turn a little like in real life physics but if it’s head-on collision, i want it to turn backwards more like in real life physics. Thanks!