Page 1 of 1
AnimatorSimple with meshs
Posted: Mon Dec 16, 2013 9:48 am
by airpas
hi
how to target for example sphere mesh position in AnimatorSimple component ?
i tried sphere.Position.X but it says "invalid propname"
Re: AnimatorSimple with meshs
Posted: Mon Dec 16, 2013 10:51 am
by Kjell
Hi airpas,
airpas wrote:how to target for example sphere mesh position in AnimatorSimple component ?
A Mesh component doesn't have a Position property. When you select a component from the Project Tree, the Properties panel shows you which properties the selected component has.
A common way to move a Mesh is to use a Model component to render it ( a Model component does have a Position property ).
Attached is the example seen in the screenshots
K
Posted: Mon Dec 16, 2013 2:40 pm
by airpas
@Kjell thank you so much , this is really helps.
just 2 question :
1 - what does SpawnModel do exactly ?
2 - how to move an object through bezier spline path? for example camera
thanks in advance
Posted: Mon Dec 16, 2013 4:26 pm
by Kjell
Hi airpas,
airpas wrote:what does SpawnModel do exactly?
SpawnModel either adds a Model to your scene ( when using Reference ), or a clone / instance of a Model ( when using Clone ).
airpas wrote:how to move an object through bezier spline path?
There's no Bezier Spline component build-in at the moment. You could do / solve this yourself, but you won't be able to import them ( from Maya / Blender etc. ), nor can you create your own editor interface ( like you can in Unity ), so it'll be a pain in the *ss to use. Regardless, attached is a ultra-basic example.
K
Posted: Tue Dec 17, 2013 7:26 am
by airpas
thanks kjell
it is simple and easy to use
idea : bezier spline points could be also stored in a file