Search the Community
Showing results for tags 'applyimpule'.
Hello, How might I add ocillation to a physics object with an impulse vector already applied? I thought it would be simple, but cannot get the function correct. The following playground scene oscillates scaling, but I need to apply this to the meshes position while they are already moving on an applyImpuse vector3 so that they oscillate while on the impuse vector - but I cannot seem to add the oscillation to the object's absolute potosition (abs). I won't even both with my attemps, as they are more problematic than helpful. But below is the last playground I was sent on a former post scling the ojects using math sin function as you can see. I thought this might be a starting point to get abs position and add the sin oscillation. http://www.babylonjs-playground.com/#1MJ09V#27 Thanks, DB