Blender Git Loki
Git Commits -> Revision 8550c2b5
Revision 8550c2b5 by Benoit Bolsee (master) October 1, 2008, 19:16 (GMT) |
BGE patch: new force field constraint actuator A new type of constraint actuator is available: Force field. It provides a very similar service to the Fh material feature but with some specificities: - It is defined at the object level: each object can have different settings and you don't need to use material. - It can be applied in all 6 directions and not just -Z. - It can be enabled/disabled easily (it's an actuator). - You can have multiple force fields active at the same time on the same object in different direction (think of a space ship in a tunnel with a repulsive force field on each wall). - You can have a different damping for the rotation. Besides that it provides the same dynamic behavior and the parameters are self explanatory. It works by adapting the linear and angular velocity: the dynamic is independent of the mass. It is compatible with all other motion actuators. Note: linear and anysotropic friction is not yet implemented, the only friction will come from the object damping parameters. Support for friction will be added in a future revision. |
Commit Details:
Full Hash: 8550c2b594fb1a2544b77b7f3abec84b29b1745d
SVN Revision: 16871
Parent Commit: 611b4b3
Lines Changed: +193, -5
5 Modified Paths:
/source/blender/makesdna/DNA_actuator_types.h (+2, -0) (Diff)
/source/blender/src/buttons_logic.c (+39, -1) (Diff)
/source/gameengine/Converter/KX_ConvertActuators.cpp (+34, -0) (Diff)
/source/gameengine/Ketsji/KX_ConstraintActuator.cpp (+107, -3) (Diff)
/source/gameengine/Ketsji/KX_ConstraintActuator.h (+11, -1) (Diff)
/source/blender/src/buttons_logic.c (+39, -1) (Diff)
/source/gameengine/Converter/KX_ConvertActuators.cpp (+34, -0) (Diff)
/source/gameengine/Ketsji/KX_ConstraintActuator.cpp (+107, -3) (Diff)
/source/gameengine/Ketsji/KX_ConstraintActuator.h (+11, -1) (Diff)