Kinematics - Constraints

Position

We could stop movement in a particular dimension, for example, we could force z=0 so that movement is always in 2 dimensions.

Alternatively we could constrain the movement in a particular dimension to be within certain limits, for example (-1,+1). Or we could allow an object to slide in a particular plane or along a particular line (see joints).

If an action tries to move an obect outside these limits, we could just pin the object to remain at the limit and/or we could raise an event when the object reaches the limit.

Another possibility is that we could allow the object to go beyond the limits, but apply a progressive force if it tries to do so. With this type of constraint we could create some very natural looking motion.

Rotation

We could prevent rotation altogether, we could allow rotation only about a particular point or a particular axis (see joints).

 


metadata block
see also:

 

Correspondence about this page Open Forum discussion - Joint Constraints

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

 

cover Robot Dynamics Algorithms (Kluwer International Series in Engineering and Computer Science, 22)

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

 

cover Dark Basic Professional Edition - It is better to get this professional edition

cover This is a version of basic designed for building games, for example to rotate a cube you might do the following:
make object cube 1,100
for x=1 to 360
rotate object 1,x,x,0
next x

cover Game Programming with Darkbasic - book for above software

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.