≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
3rd Person Player & Camera Controller 2021
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]csp-games[/b] wrote: BTW, in behavior_CameraZoomByMouseWheel.js by Niko, you can see that not everything is in the docs: [code] behavior_CameraZoomByMouseWheel.prototype.onMouseEvent = function(mouseEvent, mouseWheelDelta) { if (mouseEvent == 1) { // mouse wheel this.targetZoomValue += mouseWheelDelta * this.ZoomSpeed; if (this.targetZoomValue < this.MinZoom) this.targetZoomValue = this.MinZoom; if (this.targetZoomValue > this.MaxZoom) this.targetZoomValue = this.MaxZoom; } } [/code] So there is "onMouseEvent" (undocumented AFAIS), but it can read only: // mouseEvent: 0=mouse moved, 1=mouse wheel moved, 2=left mouse up, // 3=left mouse down, 4=right mouse up, 5=right mouse down Better keep the docs up to date, a tool fails if docs are failing.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact