BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

3D animated wiper

Go down

3D animated wiper Empty 3D animated wiper

Post by ADbve Wed Mar 09, 2022 9:00 am

i have make a 3d animated wiper that can freely turn on/off using bvec ats plugin, but i have a problem, the wiper blade only using translate x function.
so the blade not follow the handle curve and when plugin disabled the handle position gonna use the last value not turn original position.

did anyone know how to write it properly ?


the code for the handle is
Code:
[Object]
States= handle.b3d
Position= 0, 0, 0
RotateZDirection = 0, 0, 1
RotateZFunction = if[pluginstate[64] < 1, cos[time/0.2]*0.52 + 0.52, value]

for the wiper blade
Code:
[Object]
States= blade.b3d
Position= 0.265, 0.455, 0
translatezDirection = -1, 0, 0
translatezFunction = if[pluginstate[64] < 1,if[value >=0,cos[time/0.2]*0.265 + 0.265, value], value]

Here the object file https://drive.google.com/file/d/1csSyIzA4o99QKK-ojofzt4QMyBV66WGN/view?usp=drivesdk

ADbve

Posts : 72
Join date : 2020-05-14

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum