Link:INB Home|INB English| INB русский язык|INB العربية|INB Türkiye|INB فارسی|INB Español|INB Français|INB Português|INB Deutsch|INB 國語|INB 中文|INB 日本语|INB 한국어|INB ภาษาไทย|INB tiếng Việt||Tutorials LightWave 3D Rocket Science 101: A Simple Kinematics Expressions Library
INB Português Fórum
BEM - vindo a indústria nativa e "boffin") Da era industrial, aqui está cheio de espírito de Luta, Ambos através Da rede espaço biológico nativo espírito "boffin" VEIO a mad labs.Casa, Nome Definitivo:
INB Português Fórum

BEM - vindo a indústria nativa e boffin) Da era industrial, aqui está cheio de espírito de Luta, Ambos através Da rede espaço biológico nativo espírito boffin VEIO a mad labs.Casa, Nome Definitivo:

Você não está conectado. Conecte-se ou registre-se

《《《《《《《上一页INBforum   Ir em baixo

上一页INBforum》》》》》》》Ver o tópico anterior Ver o tópico seguinte Ir em baixo  Mensagem [Página 1 de 1]

1 Tutorials LightWave 3D Rocket Science 101: A Simple Kinematics Expressions Library em Qua Jan 26, 2011 3:11 am


A few basic equations can describe many of the
motions of objects in the real world. Most
of these equations are just 1D, which means
they represent motion along a line, or a single
animation channel. More complex 3D motions
arise when these equations are applied to the
X, Y and Z animation channels independently. For
example, an object falling under the influence
of gravity experiences a constant acceleration
in the down (-Y) direction. If it is
initially moving up, it slows to a stop and
reverses. Any motion in the X or Z directions
however is not changed by the acceleration
of gravity. This means a basic falling
motion can be made from a constant acceleration
on the Y channel, and constant speed on the
X and Z channels.

In the world of math the moment
when Time is 0 is very special. All these equations
respect that. If you want things to start at
some other time, like 3.7, add that time wherever
you see the expression variable "Time". If
the motion is to proceed from time zero, it is
necessary to know the initial conditions of the
item: its position, speed, as well as any acceleration. These
values will be available to the Expressions,
either as "Value", the initial
position, "InitialSpeed", or "InitialAcceleration".
The "Value" variable is already
defined, since it is the existing keyframed position.

Given the initial conditions,
the position at any time can be calculated from
the speed, which itself is calculated from the
acceleration. We are now assuming that
the acceleration is constant. This condition
happens to match the effect of gravity almost
exactly. In fact, for many simple motions, even
a constant speed (with no acceleration) is useful.
To move an item, apply the Position expression
to it. To accelerate an item from 0 to
60 in 6 seconds with a constant acceleration,
equate 60 (m/s) with the initial acceleration
times the 6 secs over which it is applied. This
leads to 60m/s = 6s * InitialAcceleration, so
the InitialAcceleration is 10 m/s2. For
60 miles per hour, some conversion is required. Similarly,
braking from a constant speed of 60m/s in one
second requires a negative acceleration (deceleration)
of -60 m/s2.
Expression Name:

Expression Name:

Expression Name:
Value + [InitialSpeed]*Time + 0.5*[InitialAcceleration]*Time*Time


Since the acceleration due to
gravity is so commonly useful, it deserves its
own special expression variable, here defined
in Earth standard meters per second per second
(m/s2). For convenience an expression
to describe moving under the influence of gravity
will be defined also. Falling can be applied
to the Y channel of an item to make it drop with
natural acceleration.
Expression Name:

Expression Name:
Value + 0.5 * [Gravity] * Time
* Time

Example 1: What goes up must come down

If an object is thrown up with
some initial speed, it will gradually come to
a stop and fall back down, accelerating all the
way. In the expressions interface, set
the InitialSpeed definition to 1.0, and
make a new expression for the Y channel, and
apply it:
Expression Name:
Value + (0.5*[Gravity]*Time*Time) + ([InitialSpeed]*Time)


The YPosition expression
combines a constant motion up with initial speed,
with an increasing down motion coming from Falling.
This is the standard kinematics equation X =
V0 T + 1/2 a T2 ,
by the way.
Example 2:Launching

For a 2D example, we will launch
something in the X direction, and Up, by giving
some item an initial speed on both the X and
Y channels, and letting gravity do its thing
on the Y channel. Apply Position to the
X channel, and leave YPosition on Y. Items
animated in this way are always launched at 45
degrees, because the X and Y motions use the
same initial speed. For extra credit, change
the launch to some other angle (called Angle)
by replacing the initial speed in the X and Y
motions by cos(Angle)*InitialSpeed and
sin(Angle)*InitialSpeed, respectively.
The sin() and cos() functions divide a line at
a certain angle into Y and X components, respectively.
Expression Name:

Expression Name:
Value + (0.5*[Gravity]*Time*Time) + (sin([Angle])*[InitialSpeed]*Time)

Expression Name:
Value + cos([Angle])*[InitialSpeed]*Time + 0.5*[InitialAcceleration]*Time*Time

Ver perfil do usuário

上一页INBforum   Ir em baixo

上一页INBforumVer o tópico anterior Ver o tópico seguinte Voltar ao Topo  Mensagem [Página 1 de 1]

Permissão deste fórum:
Você não pode responder aos tópicos neste fórum

Copyright ©2009-2010 LTD Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.



Criar um fórum | © PunBB | Fórum grátis de ajuda | Fale conosco | Assinalar uma queixa | Criar um fórum