#how to detect if the local player is looking at an object?

1 messages · Page 1 of 1 (latest)

bronze coral
#

im toying around with a scp173 system

flint shadow
#

Vector dot

bronze coral
#

how would i do that with vector dot

flint shadow
# bronze coral how would i do that with vector dot

Subtract the object and Player Head Position
Normalize it
Plug it into LHS on vector dot
Plug in Player Forward Vector on RHS
Acos the result
Get a less than chip
If the angle is less than 90
Then player is looking at object
If the angle is NOT less than 90
Then player is NOT looking at object

bronze coral
#

found 55-65 to be the best ty CheerGeneral

flint shadow
#

😁👍🏼

gleaming sonnet
#

@bronze coral

flint shadow