dim3 Forum

Full Version: Observing mouse turning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Will turning by way of moving the mouse set off the Animation Subevent: DIM3_EVENT_ANIMATION_OBJECT_TURN_LEFT[or RIGHT] ?
Or a better question, if not, is there a way to detect when theres a turn-by-mouse?
The first one, I do not know.
The second one, nope. I don't think so.
No to both. Observing mouse turning could be a real mess as it's very fine and you'd get way to many events for that.

What are you trying to do, there might be a better way around it.

[>] Brian
You know how I had the suggestion of having a player Y limit in the beta thread?
Well in case that didn't get added I was trying to make myself a workaround.
Well its kinda complicated. Firstly I'm making an RTS. I'm trying a fake way of seperating the mouse from the camera; by having it in third person locked camera, where the player model is blank. However, I don't want the crosshair (selector) to leave the screen, so that's what I was trying to do with the Y limit. In my workaround, when a turning is detected, if Y is greater than one value or less than another, Y axis is locked. Than (if, say, the mouse is too far to the left) when a right turn is detected, it becomes unlocked. It probably would have been pretty messy.
Of course a seperate-camera-from-mouse feature would solve the whole thing. Rolleyes
and what if you make the camera lock onto an invisible model and script it to move when the mouse is "out of reach". maybe you could also make invisble boundries (shaped as a octangle) and when the mouse hits one of the sides it would move the camera in that direction. that could save you some scripting.
You know, you don't have to make a blank player model, just don't make one at all Wink. You don't need a model for EVERY script!
ccccc: oh... yeah.... Rolleyes
Yurlyn: Eep. I don't know what your saying. Sad Sounds like you have an idea about it though. For instance how would it detect when the mouse is out of reach?
Hm. Maybe I could use that 3d-2d function. Hm.
it would by scripting a event on collision. maybe set a perimeter (no model here Wink ccccc) around the mouse and make it collide with one of the 8 perimeters (up, up right, right, down right etc.) so it would make the sreen move in that direction until the collision is over by moving the mouse away from the directional perimeters and into the "free" zone.

i know i sound nuts but i'm tired but can't get to sleep :p
Reference URL's