Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Neogene

Pages: [1]
1
DOTween & DOTween Pro / Re: transform.forward equivalent?
« on: March 02, 2016, 12:11:18 PM »
Buon divertimento  ;D

Hi,

This is interesting. Adding it to my todo list and will see if it's doable :)

Cheers,
Daniele

2
DOTween & DOTween Pro / Re: transform.forward equivalent?
« on: March 01, 2016, 12:12:12 PM »
Hi

why not add to the API a method like SetUseAxis(def = true) which allows to use the forward/right/up axis e.g.: 

Instead of

transform.parent.DOLocalMove( transform.parent.up*moveDistance,duration).SetRelative(true)

use something like

transform.parent.DOLocalMoveX/Y/Z(moveDistance,moveDuration*moveSpeed).SetRelative(true).SetUseAxis();

which under the hood will do (transform.parent.right/up/forward)*moveDistance

and which will move along the Local Axis (forward/right/up).

have a nice day.

Pages: [1]