- Home /
pendulum simulation with force vectors
Hi Unity users,
I want to create pendulum animation with visualization of force and acceleration vectors. I am attaching sample picture herewith. I am afraid if these vectors arrows could be rendered according to simulation. Please any one help for visualize these vectors using C# script.
Thanks in advance.
RC
The math for figuring out the magnitude of these vectors is not a Unity question. Rotating, and scaling these vectors given that you have done the calculation for magnitude is a Unity question, but we need some definition of how you've implemented the arrows. Are they a single mesh or is the head of the arrow a separate object from the shaft of the arrow.
Answer by YoungDeveloper · Oct 06, 2013 at 06:47 AM
You could use debug.drawline to render line or array of lines.
Hi,
I dont want to render trail or line path. I want to attach force vector to the object in arrow form with direction and magnitude of the object's force.
Thanks
Answer by Ram77 · Oct 07, 2013 at 12:17 PM
Dear Robertbu, Thanks for replying. Arrow is single mesh. We have a equations in c#, we can implement such problem in unity. Please just give me some clues, Thanks,
Hi, Anybody there who can help me in this connection.
Thanks, Ram