ronghester
Member
|
Trail to point
Trying to add a trails to moving ball, i just have a position and moving vector of the ball. How to add trails, in this situation.
Thanks
|
|
02-17-2019 07:06 PM |
|
Mardok
Member
|
RE: Trail to point
Check tutorial "Swing, trail effect". I used this to add trail to my object.
|
|
02-17-2019 07:16 PM |
|
ronghester
Member
|
RE: Trail to point
I checked the tutorial it uses the mesh box extent. As i said, i only have a point and moving vector of a ball.
|
|
02-17-2019 08:00 PM |
|
RedcrowProd
Member
|
RE: Trail to point
you can use what you would like for the update, you dont need to call mesh box extent.
as you can see there void update(C Vec &new_pos_start, C Vec &new_pos_end)
all you need is to call new pos start and new pos end to have your trail set up
|
|
02-17-2019 08:37 PM |
|
ronghester
Member
|
RE: Trail to point
Thanks. I want the trail to originate from the ball center and then spread at the end. Now i can set the start and end point but then i am not able to set the width at the start and end ?
Do you get i what i am saying ??
|
|
02-17-2019 09:05 PM |
|
RedcrowProd
Member
|
RE: Trail to point
well you can define the width, and take last moving vector + new moving vector to get your direction, and you can set up from pos + width depending of direction.
|
|
02-17-2019 09:21 PM |
|