Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to clone relative to prop origin #42

Open
stepa2 opened this issue Jul 9, 2021 · 1 comment
Open

Add option to clone relative to prop origin #42

stepa2 opened this issue Jul 9, 2021 · 1 comment

Comments

@stepa2
Copy link

stepa2 commented Jul 9, 2021

Add option to clone relative to prop origin instead of prop bounding box

@dvdvideo1234
Copy link
Contributor

@stepa2

The tool already uses the prop's position as the stack origin:

	local entPos   = ent:GetPos()
	local entAng   = ent:GetAngles()
...
		-- calculate the next stacked entity's position
		entPos = entPos + (direction * distance) + offset

Direction and distance are calculated on WORLD or PROP mode. OBB Mins/Maxs are used so the prop can easily stick to the one at the previous iteration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants