Looked all over blender forums seach, no such luck of finding what i`m after.
I have parented camera to the character box, so its a fixed camera.
I just want to be able to move the camera slightly, so i need a cap
up.down and left.right… Thanks in advance
Wrong section! ‘Game Engine Resources’ is not for requests. It is for people to submit their resources to. If you want help with movement or cameras, use the ‘Game Engine Support and Discussion’ section!
Moved from “Game Engine Resources” to “Game Engine Support and Discussion”
@RossBlenderArt No need to ream the poor poster out. Simply reporting the post is enough.
Hope somebody can help me!
http://www.tutorialsforblender3d.com/Game_Engine/MouseLook/MouseLook_First_1.html
The code in Blendfile for 2.55 should work. (Haven’t test it before)
ok so, there are a couple ways to achieve this
I usually use a rigid body joint from the camera, to a object that is static and ghost, that has
obj.worldPosition = target.worldPosition
obj.worldOrientation = target.worldOrientation
this way it “tracks” without effecting the player,
then define your max angles on the rigid body,
use key ------and-------------apply torque,
and this will “swivel” the cam, having a “zoom” ability using forces is possible as well
O btw mine has 4 lines of python :)
Attachments
3rdPersonDemo.blend (490 KB)
Thats what i
m trying to achieve but with the mouse left and right
Kinda like resident evil 4/5
I will make a rig and post it, that is how my game is, so I will have to chop it out for you this is from a smart phone, my HTC pipboy http://m.youtube.com/watch?v=5sBN7Ki3LOs
I can send you my rig if you want, so you can see where im at.. Also i
m trying to move only arms, instead of the hole upper arm
-ature…No such luck though…
up/down are capped, just need left/right now.
http://www.fileconvoy.com/dfl.php?id=g7ce6c430facb99c3999224249e871687374e798f3
excerpt from http://pastebin.com/EwZDcK2S
use mouse look for a “center” that is the head, or torso etc, parent the camera to it, define a 6dof and then change this part,
set the values act_LeftRight.dRot = [ 0.0, 0.0, leftRight]
act_LeftRight.useLocalDRot = False act_UpDown.dRot = [ upDown, 0.0, 0.0] act_UpDown.useLocalDRot = True # Use the actuators controller.activate(act_LeftRight) controller.activate(act_UpDown)
and change
act_UpDown.angVel= [ upDown, 0.0, 0.0] or equivalent
act_LeftRight.angVel= [ 0.0, 0.0, leftRight] equivalent
Are those in my script, i`m a bit confused, thanks for the help i do appreciate it.
this applies the rotation as angular velocity,
this is in the script
that applies rotation, which will work fine, however limiting it is tricky, where as angVel can’t go outside the 6dof boundry
so with this, you set up limits, on “head” or “torso” and use 6dof instead of parenting, then put the mouselook in the “head or torso” and the mouse will apply the angV to the object, so if your camera is parented to the moving piece, it follows it,
check out my 3rd person rig, you just need to mix “mouselook” and what I have there,
/uploads/default/original/3X/8/6/86fed9ae0c9594eae6fc0e077a56245af73fa0cf.blendd=1360862037
Just tried adding that script, does not do nothing.
I did, however i don`t want to use keyboard to move i want to use mouse.
one sec I will upload another .blend
the object that has the code in it is the camera inside the “head”
Attachments
FreekingSharks.blend (519 KB)
it has to be in a object with the right settings,
Yeah i tried that with my rig, it never worked for me. Maybe you can try it with my rig ?
your rigs file host expired, can you try uploading with pasteall.org? password and PM it and I agree to confidentiality if you want to retain privacy
I dont mind people taking it, if it helps somebody else that makes me happy :D I
m trying to make it like resident evil 4, so just arms move no luck still…
http://www.pasteall.org/blend/19666
Hope you can help