About Store Forum Documentation Contact



Post Reply 
Trail to point
Author Message
ronghester Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Mardok Offline
Member

Post: #2
RE: Trail to point
Check tutorial "Swing, trail effect". I used this to add trail to my object.
02-17-2019 07:16 PM
Find all posts by this user Quote this message in a reply
ronghester Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
RedcrowProd Online
Member

Post: #4
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
Find all posts by this user Quote this message in a reply
ronghester Offline
Member

Post: #5
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
Find all posts by this user Quote this message in a reply
RedcrowProd Online
Member

Post: #6
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
Find all posts by this user Quote this message in a reply
Post Reply