Nov 27

I’ve been recently busy with engine coding more than game coding.

Of course the later needs the first one. To keep the story short, the engine is based on a system of constraints, each constraint defines a specific type of link between nodes.

There was already the animation constraint (to playback exported keyframed animation) and I just added two other ones :

- Camera constraint ( to attach a camera to nodes )

- Distance constraint ( to keep a node at a certain distance from another one )

I use the two recent ones for IZR craft.

First I created a node that has a distance constraint to the craft.

Then I added a Camera constraint attached to this node and look at the craft.

By adjusting the blend factor of the distance constraint , I get a nice spring style camera always looking at the craft.

test_camera

  • Share/Bookmark

Leave a Reply

preload preload preload