Forum: Poser Technical


Subject: More about ERC slave code: Creating parabolic curves

VK opened this issue on May 13, 2003 ยท 14 posts


VK posted Tue, 13 May 2003 at 3:32 PM

Attached Link: Cannon1 example (50 KB)

Here's a simple cannon model (50 KB). There is a "Fire" dial on body part "gun", to move the bullet on a parabolic-like curve. This is not a real ballistic movement, but it looks much better than a straight lateral movement. To control the range of the bullet, you can set the altitude of the gun, and adjust the width of the curve a little bit (there is an additional "Range" master dial to adjust the value of the ytran slave). You can also choose a higher or lower deltaAddDelta in the ytran slave, to create a narrow or wide curve. The cr2 includes some more channels, to move the bullet out of the gun, before the curve starts. The code is documented, so you can see what the channels do.