I have a mesh that moves forward at a constant rate. I want it to hit a wall and ricochet off at the angle of reflectance. There are plenty of examples of doing this with a line trace but I can’t find any that explain how to directly affect a meshes’ rotation.
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“small”,“data-tempid”:“temp_133616_1522276511887_126”}[/ATTACH]
This pic shows what I have, but it only works for walls on the X axis, not on Y or at odd angles. If anyone could tell me how to rotate my mesh correctly I’d be very grateful, thanks!
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“medium”,“data-tempid”:“temp_133615_1522276542942_646”}[/ATTACH]