-
-
Notifications
You must be signed in to change notification settings - Fork 2
Player Head Collider
eisclimber edited this page Jan 18, 2024
·
1 revision
class in ExPresSXR.Rig / Extends MonoBehavior
Component added via Component Menu
Detects collisions of an ExPresS XR Rig
s camera.
It can optionally push the rig back to prevent clipping inside objects (this may be weird though) and/or display vignette effect of an ScreenCollisionIndicator
when collisions occur.
-
Vector3 _colliderSize
: Size of theSphereCollider
to detect collisions with the head.
-
bool collisionPushbackEnabled
: If enabled, will push back thepushBackAnchor
when collisions are detected. -
bool showCollisionVignetteEffect
: If enabled, will show the vignette effect of anScreenCollisionIndicator
when collisions occur. -
GameObject pushbackAnchor
: The Transform that is pushed back to prevent collisions and clipping into walls. -
float maxFadeDuration
: How long in seconds the vignette effect of theScreenCollisionIndicator
takes to reach it's maximum opacity. -
LayerMask _layerMask = 1;
: Physics Layers used to detect collisions. Default-Layer: 1 = Default.
-
UnityEvent OnCollisionStarted
: Emitted when a collision with the head is first detected. -
UnityEvent OnCollisionEnded
: Emitted when a collision with the head ended.
-
float FLOOR_DISTANCE_THRESHOLD
: Distance on which the rig is to be considered on the ground and will not be pushed to the floor.
Autor: Luca 'eisclimber' Dreiling; License: MIT
- Getting Started
- Development and Contribution
- Misc
- Experimentation
- Data Gatherering
- Eye Tracking
- ExPresS XR Rig
- Interaction
- Base Button
- Button Quiz
- Collision Hand Rumbler
- Collision Sound Emitter
- Exit Game Interactable (Script Deprecated)
- Interactables
- Haptic Impulse Trigger
- Socket Interactors
- Inverse Kinematics
- Localization
- Minigames
- Coin Scale
- Coin Throw
- Sword Cleaning
- Misc
- Movement
- Presentation
- UI