Exposes a property x, y in logic,
mouse adds value or subtracts from value
anything can be done with these values.
I give you the keys
note the limits are in radians for this camera setup using the properties and a “body” as a reference target
Attachments
propertyBasedRotationLimit.blend (506 KB)
Version 2- added “lock” code
now it can NOT go past limits ever.
MinX,MaxX,MinY,and MinX are properties now
setting them changes the max angle.
Attachments
propertyBasedRotationLimitLock.blend (507 KB)
3rd person with armature rig example
Attachments
propertyBasedRotationLimitLock3rdPerson.blend (552 KB)
and now with a head and another arm,
Next is animation(walking climbing etc) vs aiming modes,
Attachments
propertyBasedRotationLimitLock3rdPerson2.blend (570 KB)
and now a empty for aiming and a empty for animations(walking etc)
I had been struggling with this for wrectified, I give it to you all
Attachments
propertyBasedRotationLimitLock3rdPerson2 (goodies).blend (638 KB)
and now working correctly(there were ik solving issues)
mouse, wsad , 1 2,
Attachments
propertyBasedRotationLimitLock3rdPerson2RemovedSteping.blend (634 KB)
here is a generic application of the mouse properties
motion (relative) and open
Attachments
MouseDemo2.blend (458 KB)MouseDemo3.blend (480 KB)
Armature head manipulation using mouse
Attachments
LookAtit.blend (547 KB)